path: root/t/t4013/diff.log_-S_F_master
diff options
authorMatthieu Moy <>2010-08-05 08:22:52 (GMT)
committerJunio C Hamano <>2010-08-06 16:14:22 (GMT)
commitdea007fb4c8170ea007b577698c7b44df6c318b9 (patch)
tree387a6302089953a7c07c9396cdbd91a36b031c7a /t/t4013/diff.log_-S_F_master
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9 (diff)
diff: parse separate options like -S foo
Change the option parsing logic in revision.c to accept separate forms like `-S foo' in addition to `-Sfoo'. The rest of git already accepted this form, but revision.c still used its own option parsing. Short options affected are -S<string>, -l<num> and -O<orderfile>, for which an empty string wouldn't make sense, hence -<option> <arg> isn't ambiguous. This patch does not handle --stat-name-width and --stat-width, which are special-cases where diff_long_opt do not apply. They are handled in a separate patch to ease review. Original patch by Matthieu Moy, plus refactoring by Jonathan Nieder. Signed-off-by: Matthieu Moy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/t4013/diff.log_-S_F_master')
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t4013/diff.log_-S_F_master b/t/t4013/diff.log_-S_F_master
new file mode 100644
index 0000000..978d2b4
--- /dev/null
+++ b/t/t4013/diff.log_-S_F_master
@@ -0,0 +1,7 @@
+$ git log -S F master
+commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0
+Author: A U Thor <>
+Date: Mon Jun 26 00:02:00 2006 +0000
+ Third