git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Tracking branch history
@ 2006-05-12 23:18 Daniel Barkalow
  2006-05-12 23:45 ` Linus Torvalds
  2006-05-13 12:53 ` Elrond
  0 siblings, 2 replies; 21+ messages in thread
From: Daniel Barkalow @ 2006-05-12 23:18 UTC (permalink / raw)
  To: git

One feature that might make git more intuitive to people is if we were to 
additionally track the history of what commit was the head of each branch 
over time. This is only vaguely related to the history of the content, but 
it's well-defined and sometimes significant.

E.g., if you know that two weeks ago, what you had worked, but it doesn't 
work now, you can use git-bisect to figure out what happened, but first 
you have to figure out what commit it was that you were using two weeks 
ago. Two weeks ago, we had that information, but we didn't keep it.

It would probably also be useful for showing changelogs in a 
locally-useful order. If you merge in a tree that's been in separate 
development for a long time, the commits in that tree will be interleaved 
in commit date with the commits you did locally. You tend to want to 
attribute all of the changes that happened in the merge to the time of the 
merge, but that commit object isn't going to tell you anything useful, 
because it may have been done by the other tree (and you fast-forwarded to 
the merge). In fact, you may want to attribute the changes to the 
fast-forward, which can't recorded in the content history, because nothing 
happened to the content. On the other hand, if we were to also record the 
branch history, we could give output which shows changes in the order they 
reached the local tree (then ordered by the commit tree), just by having 
it do:

<time now>

git log <head-as-of-before>..<head-of-of-now>

<time before>

git log <head-as-of-before-that>..<head-as-of-before>

<time before-that>

and so forth.

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2006-05-15  9:53 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-12 23:18 Tracking branch history Daniel Barkalow
2006-05-12 23:45 ` Linus Torvalds
2006-05-13  0:03   ` Linus Torvalds
2006-05-13  4:27     ` Daniel Barkalow
2006-05-13  3:40   ` Shawn Pearce
2006-05-13  4:38     ` Linus Torvalds
2006-05-13  4:56     ` Junio C Hamano
2006-05-13  7:17       ` Shawn Pearce
2006-05-13  7:43         ` Shawn Pearce
2006-05-13 15:20           ` Linus Torvalds
2006-05-13 16:43             ` Junio C Hamano
2006-05-13 18:18               ` Shawn Pearce
2006-05-14 23:14                 ` Junio C Hamano
2006-05-15  3:15                   ` Shawn Pearce
2006-05-15  5:58                     ` Shawn Pearce
2006-05-15  6:27                       ` Junio C Hamano
2006-05-15  6:38                         ` Shawn Pearce
2006-05-15  9:53                           ` Shawn Pearce
2006-05-13 15:11         ` Linus Torvalds
2006-05-13 12:53 ` Elrond
2006-05-14 23:16   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).