git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BugReport] git tag -a / git show
@ 2012-02-24 10:24 Romain Vimont (®om)
  2012-02-24 19:27 ` Zbigniew Jędrzejewski-Szmek
  2012-02-24 19:50 ` [Not A BugReport] " Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Romain Vimont (®om) @ 2012-02-24 10:24 UTC (permalink / raw)
  To: git

$ git --version
git version 1.7.5.4

$ git log --pretty=online
0ef41513d0b6d0ad28f21d0ac1da7096ad1dc6ff This is the last commit
a4702c69c28484d357179166cf3b116764da20a4 This is a commit

Now, I edit some files (for example in a config file "mock_data=true"), 
then I want to tag without commiting this change.

$ git tag -a v0.1 -m 'My v0.1 with mock data'

$ git show v0.1
tag v0.1
Tagger: Me <me@me.me>
Date:   Fri Feb 24 11:23:38 2012 +0100

     My v0.1 with mock data

commit 0ef41513d0b6d0ad28f21d0ac1da7096ad1dc6ff
Author: Me <me@me.me>
Date:   Fri Feb 24 11:14:19 2012 +0100

     This is the last commit

diff --git a/myfile b/myfile
index 8430bf6..20feeb6 100644
...


And it shows the diff between a4702c69c28484d357179166cf3b116764da20a4 
and 0ef41513d0b6d0ad28f21d0ac1da7096ad1dc6ff (the two last commits).
Instead, it should show the diff between 
0ef41513d0b6d0ad28f21d0ac1da7096ad1dc6ff (the last commit) and v0.1 (the 
tag).

Best regards,
®om

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

end of thread, other threads:[~2012-02-24 23:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 10:24 [BugReport] git tag -a / git show Romain Vimont (®om)
2012-02-24 19:27 ` Zbigniew Jędrzejewski-Szmek
2012-02-24 19:55   ` Romain Vimont (®om)
2012-02-24 20:52     ` Jeff King
2012-02-24 21:42       ` Romain Vimont (®om)
2012-02-24 21:44         ` Jeff King
2012-02-24 19:50 ` [Not A BugReport] " Junio C Hamano
2012-02-24 19:58   ` Romain Vimont (®om)
2012-02-24 23:14     ` Andreas Schwab

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