Re: [PATCH 2/5] git-submodule: New subcommand 'summary' (2) - hard work

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 2/5] git-submodule: New subcommand 'summary' (2) - hard work

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:05

"Ping Yin" [off-list ref] writes:
quoted
+                       echo "* $name $sha1_src...$sha1_dst:"
If it's a type change (head submodule but index blob, or the the
reverse), $sha1_dst or $sha1_src will be the sha1 of the blob. It's
inapprociate to be shown as if it's a commit in the submodule. May
00000000 should be shown instead of the blob sha1?
I do not think that adds much value.  When A or B is a
non-commit, you know that A...B notation does not apply, and
because it is probably a rare situation you would want to make
it even more clearer to the reader by using a different
notation.  Like

    echo "* $name have changed from submodule $sha1_src to blob $sha1_dst!!".

perhaps in red bold letter in larger font ;-)

Re: [PATCH 2/5] git-submodule: New subcommand 'summary' (2) - hard work

From: Ping Yin <hidden>
Date: 2016-06-15 22:44:05

On Jan 13, 2008 3:25 AM, Junio C Hamano [off-list ref] wrote:
"Ping Yin" [off-list ref] writes:
quoted
quoted
+                       echo "* $name $sha1_src...$sha1_dst:"
If it's a type change (head submodule but index blob, or the the
reverse), $sha1_dst or $sha1_src will be the sha1 of the blob. It's
inapprociate to be shown as if it's a commit in the submodule. May
00000000 should be shown instead of the blob sha1?
I do not think that adds much value.  When A or B is a
non-commit, you know that A...B notation does not apply, and
because it is probably a rare situation you would want to make
it even more clearer to the reader by using a different
notation.  Like

    echo "* $name have changed from submodule $sha1_src to blob $sha1_dst!!".

perhaps in red bold letter in larger font ;-)
OK, i will think over.



-- 
Ping Yin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help