I was investigating submodules in the pro git book 
<https://git-scm.com/book/en> and it documents in the tips section 
<https://git-scm.com/book/en/v2/Git-Tools-Submodules#Submodule-Tips> some 
suggested aliases.
In particular (Note: I'm ignoring the '&amp;&am;' bug and changed it to 

git config alias.sdiff '!'"git diff && git submodule foreach 'git diff'"

My question is, the alias.sdiff is using the && to test for 'true | false' 
but I couldn't find in the 'git diff <https://git-scm.com/docs/git-diff>' 
what the return value is. I also looked at 'git log 
<https://git-scm.com/docs/git-log>' or 'git' <https://git-scm.com/docs/git> 
suite and couldn't find the return value documented there
either. A little experimentation indicates for git diff the return value is 
0 (i.e. a bash true) whether there are differences
or not and looks to return a non 0 value (i.e. a bash false) only when 
there is a 'fatal' error.

Thus, the alias.sdiff makes sense, but is there documentation on the return 

-- Wink

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to