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

Re: Possible bug with `export-subst' attribute

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:12

Possibly related (same subject, not in this thread)

Jonathan Nieder [off-list ref] writes:
Junio C Hamano wrote:
quoted
The ones to archive and checkout I understand, but what effect does the
one to commit.c::print_summary() have?
Currently commit.c::print_summary() does this:
...
	if (!log_tree_commit(&rev, commit)) {
		...

In other words, it imbues rev with a format including %h and uses that
to print a commit summary.
Sorry, but I think I understood that part.

But the thing is, we do not seem to show non-abbreviated string there with
or without your patch, because inside log_tree_diff_flush() -> show_log()
callchain we use opt->diffopt.abbrev to decide what is done for that %h
token:

	ctx.abbrev = opt->diffopt.abbrev;

so just like the confusing assignment in builtin/checkout.c, isn't
this one in builtin/commit.c also a confusing no-op?

Perhaps I am missing something obvious?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help