Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 0/2] git describe --first-parent

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:43

Michael J Gruber [off-list ref] writes:
While "git describe" behaves as documented, the notion of "most recent tag"
is not really easy to grab, and it's not always the way you want to describe
a commit.

"--first-parent" is the option which answers the question: Which is the
most recent tag on this branch which can be reached from this commit?
("This branch" being defined as "--first-parent" walk.)
I see a confused message here.  If it is "the" option which answers,
what is the question?  If the "question" is the only question people
would ask, you wouldn't make this an option, but update the default
to do this, but you obviously did not want to do so, so there must
be cases where using this option is inappropirate and is not "the"
option to answer the question the user wants to ask.

Also, how would this interact with "--contains"?  Should it and if
so why?  If it shouldn't, why?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help