Hmph. One way to avoid causing problems for diffs that are
piped into other programs and still give the "index of sync"
warning is to emit "diff --git" line and no patch body fot
textual diffs, or 0{40} SHA-1 on the right hand side for --raw
format diffs.
Jokes aside...
For textual diffs, I think we can always spit out the warning
message at the beginning of at the end on the standard output
without harming any of the patch based toolchain.
So how about...
- If and only if the output format asks for textual diff
(DIFF_FORMAT_PATCH), we do this "stat-dirty-removal";
otherwise we do not spend extra cycles and keep the current
behaviour.
- At the end of patch text, show "stat-dirty-removal" warning
on stdout.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html