Re: gitk highlighting commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



picca <picca@xxxxxxxxxxxxxxxxxxxxx> wrote:
> I am using git to follow the wine development. And I wondering if it
> is possible to highlight all the commit since my last git pull ?

If you do it *right after* the pull, you can see those commits that
are new to you with:

	gitk ORIG_HEAD..

ORIG_HEAD is a special name for the commit that you had just before
you pulled.  So you are asking gitk to show you all commits that
are now in your current branch (implied by nothing to the right of
the ..) that were not in your branch before the pull (ORIG_HEAD).
That is the stuff you just pullled.

If its many days later that you want to look at this and you have
done some things that overwrite ORIG_HEAD (git reset; git rebase;
etc.)  then this becomes more difficult.  But you can also do by
time:

  gitk HEAD@{2.days.ago}..

This shows you everything that is new *to you* in the past two days.
Even if the changes were created months ago and just recently were
pulled by you yesterday, they will appear in gitk, because you asked
for *your* history over the past two days, not the project history.

These same tricks also work with git-log of course:

  git log ORIG_HEAD...
  git log HEAD@{2.days.ago}..

You could also take a look at the manual page for git-rev-parse,
there are some more details covered there I think.
 
-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux