git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Commiting unchanged tree
@ 2010-09-18  8:15 Maaartin
  2010-09-18  9:30 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 2+ messages in thread
From: Maaartin @ 2010-09-18  8:15 UTC (permalink / raw)
  To: git

I thought that calling

git commit --amend -m "A message"

twice in a row should lead to an error saying "nothing to commit (working 
directory clean)", but it doesn't. Or at least, the result of the second commit 
should be the same as the result of the first one, but I keep getting a 
different hash each time

# git commit --amend -m "A message"
[master b8cf1c2] A message
# git commit --amend -m "A message"
[master 6c8ea30] A message
# git commit --amend -m "A message"
[master be318b3] A message

I wonder if everything is fine with my repo since I was doing some funny 
rebasing and filtering and I'm quite new to git.

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

end of thread, other threads:[~2010-09-18  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-18  8:15 Commiting unchanged tree Maaartin
2010-09-18  9:30 ` Ævar Arnfjörð Bjarmason

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