path: root/Documentation/diff-options.txt
diff options
authorJunio C Hamano <>2005-12-14 01:21:41 (GMT)
committerJunio C Hamano <>2005-12-20 02:32:44 (GMT)
commit47dd0d595d04ee5283dfd8a0b4cbd6e6de8ad57f (patch)
tree49a5c32f9fbcd84e328e6b285d8d1393271563e8 /Documentation/diff-options.txt
parent1c15afb9343bca82e687d008ec983a9110ac9c40 (diff)
diff: --abbrev option
When I show transcripts to explain how something works, I often find myself hand-editing the diff-raw output to shorten various object names in the output. This adds --abbrev option to the diff family, which shortens diff-raw output and diff-tree commit id headers. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/diff-options.txt')
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 6b496ed..3d1175e 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -18,6 +18,13 @@
object name of pre- and post-image blob on the "index"
line when generating a patch format output.
+ Instead of showing the full 40-byte hexadecimal object
+ name in diff-raw format output and diff-tree header
+ lines, show only handful prefix. This is independent of
+ --full-index option above, which controls the diff-patch
+ output format.
Break complete rewrite changes into pairs of delete and create.