feat: added git diff

https://github.com/crawlab-team/crawlab/issues/1485
This commit is contained in:
Marvin Zhang
2024-06-30 16:10:51 +08:00
parent 1ea0a352c4
commit 68307d250e

View File

@@ -291,6 +291,10 @@ func PostBaseFileExport(rootPath string, c *gin.Context) {
c.File(zipFilePath)
}
func GetBaseFileFsSvc(rootPath string) (svc interfaces.FsServiceV2, err error) {
return getBaseFileFsSvc(rootPath)
}
func getBaseFileFsSvc(rootPath string) (svc interfaces.FsServiceV2, err error) {
workspacePath := viper.GetString("workspace")
fsSvc := fs.NewFsServiceV2(filepath.Join(workspacePath, rootPath))