Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Commiting unchanged tree

From: Maaartin <hidden>
Date: 2016-06-15 22:49:34

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help