All of lore.kernel.org
 help / color / mirror / Atom feed
* Confused as to the correct syntax
@ 2005-10-05 22:50 Alan Chandler
  2005-10-05 23:16 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Chandler @ 2005-10-05 22:50 UTC (permalink / raw)
  To: git

The man page for git-rev-parse talks about the way to specify commits back 
from a named commit object.  The following text in this man page tries to 
explain it, but it has confused me more

"A  suffix  ~<n>  to  a  revision parameter means the commit object that is 
the <n>th generation grand-parent of the named commit object, following only 
the first parent. I.e. rev~3 is equivalent to rev^ which is equivalent to 
rev11^1."


Why is rev~3 equivalent to rev^,  surely it is equivalent to rev^^^

Why is rev~3 equivalent to rev11^1, should that not be rev^1^1^1

I don't understand the syntax here - so was looking it up in the man page. Is 
there an error in the page or have I misunderstood something.


-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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

end of thread, other threads:[~2005-10-06  0:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 22:50 Confused as to the correct syntax Alan Chandler
2005-10-05 23:16 ` Junio C Hamano
2005-10-05 23:33   ` Alan Chandler
2005-10-05 23:54     ` Junio C Hamano
2005-10-05 23:42   ` [PATCH] Fix usage of carets in git-rev-parse(1) Jonas Fonseca
2005-10-06  0:06     ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.