Gitifier icon indicating copy to clipboard operation
Gitifier copied to clipboard

Commits of a new branch ignored first sync

Open mgurov opened this issue 12 years ago • 3 comments

git checkout -b newBranch && echo a > a && git commit -a -m "first change" Gitifier -> check now - nothing shown echo b >> a && git commit -a -m "second change" Gitifier -> check now - "second change" is notified about.

Gitifier seems to skip all the commits in new branches that happened before a sync.

mgurov avatar Apr 09 '12 11:04 mgurov

Looking into the code, the sync is based on git fetch which doesn't give a range of revisions for new branches:

)
2012-04-09 13:46:07.241 Gitifier[2769:603b] command git fetch completed with output: From file:///Users/mgu/work/git-svn/git.repo
- [new branch]      newBranch2 -> origin/newBranch2```

a simple workaround could probably be to show a special notification when a new branch is created, optionally with some of its commits.

mgurov avatar Apr 09 '12 11:04 mgurov

https://github.com/sickill/git-dude/blob/master/git-dude has a handling logic for a similar problem

mgurov avatar Apr 09 '12 15:04 mgurov

proof of the concept implementation available @ https://github.com/mgurov/Gitifier/tree/newBranchTracking

mgurov avatar Apr 12 '12 17:04 mgurov