git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Any way to get complete diff up to a tag?
@ 2010-05-06  9:27 Peter Kjellerstedt
  2010-05-06  9:42 ` Bert Wesarg
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Peter Kjellerstedt @ 2010-05-06  9:27 UTC (permalink / raw)
  To: git@vger.kernel.org

If I use

$ git diff v1.7.1..

I get a diff for everything that has happened after the v1.7.1
release (up to HEAD). Is there a way to do the opposite, i.e.,
get everything (including the initial commit) up to and including 
v1.7.1? I first tried  

$ git diff ..v1.7.1

but it gave me the reverse of the above, which I later found out 
was due to it being the same as

$ git diff HEAD..v1.7.1

which of course does not yield the result I want. 

If I use

$ git diff $(git rev-list --reverse v1.7.1 |head -1)..v1.7.1

I almost get what I want, but the initial commit is still missing.
Is there any way to get that initial commit included in the diff?

Basically, what I think I am asking for is a way to specify the 
empty parent of the initial commit, i.e., where v1.7.1~1000000 would
end up. I can see this being useful in at least one other case as 
well, namely when doing an interactive rebase to allow the initial
commit to be rebased (something I have wanted to do a couple of 
times...)

//Peter

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

end of thread, other threads:[~2010-05-07 16:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06  9:27 Any way to get complete diff up to a tag? Peter Kjellerstedt
2010-05-06  9:42 ` Bert Wesarg
2010-05-06  9:42 ` Björn Steinbrink
2010-05-06 11:20   ` Peter Kjellerstedt
2010-05-06 13:00     ` Santi Béjar
2010-05-06 13:03     ` Johannes Sixt
2010-05-06 15:09       ` Peter Kjellerstedt
2010-05-06 15:27         ` Björn Steinbrink
2010-05-06 17:08         ` Linus Torvalds
2010-05-06 18:38           ` Greg Troxel
2010-05-07 16:35           ` Peter Kjellerstedt
2010-05-06 15:43 ` Knittl
2010-05-07  4:17   ` Peter Kjellerstedt

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).