nschum / Gitifier

Git commit notifier for MacOSX
http://psionides.github.com/Gitifier/
Eclipse Public License 1.0
314 stars 15 forks source link

Commits of a new branch ignored first sync #43

Open mgurov opened 12 years ago

mgurov commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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

mgurov commented 12 years ago

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