Skip to content

Commit

Permalink
fix: diff current branch with main (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelramos authored Aug 9, 2022
1 parent 2d7f0c3 commit 2bfa943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"args": [
"--root",
"../sublime-ui",
"../sublime-sdk",
"action",
"--type",
"branch",
Expand Down
2 changes: 1 addition & 1 deletion utils/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func InitGit(path string) (string, error) {
}

func GetBranchList(path string) (string, error) {
gitCmd := exec.Command("git", "--no-pager", "diff", "--name-only", "main^..HEAD")
gitCmd := exec.Command("git", "--no-pager", "diff", "--name-only", "main..HEAD")
gitCmd.Dir = path
output, err := gitCmd.CombinedOutput()

Expand Down

0 comments on commit 2bfa943

Please sign in to comment.