File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 84
84
diffstat=--no-stat ;;
85
85
--stat|--summary)
86
86
diffstat=--stat ;;
87
- --log|--no-log)
88
- log_arg=$1 ;;
87
+ --log|--log= * |-- no-log)
88
+ log_arg=" $1 " ;;
89
89
--no-c|--no-co|--no-com|--no-comm|--no-commi|--no-commit)
90
90
no_commit=--no-commit ;;
91
91
--c|--co|--com|--comm|--commi|--commit)
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ test_expect_success setup '
17
17
git commit -m "add bfile"
18
18
) &&
19
19
test_tick && test_tick &&
20
+ echo "second" >afile &&
21
+ git add afile &&
22
+ git commit -m "second commit" &&
20
23
echo "original $dollar" >afile &&
21
24
git add afile &&
22
25
git commit -m "do not clobber $dollar signs"
@@ -32,4 +35,18 @@ test_expect_success pull '
32
35
)
33
36
'
34
37
38
+ test_expect_success ' --log=1 limits shortlog length' '
39
+ (
40
+ cd cloned &&
41
+ git reset --hard HEAD^ &&
42
+ test "$(cat afile)" = original &&
43
+ test "$(cat bfile)" = added &&
44
+ git pull --log=1 &&
45
+ git log -3 &&
46
+ git cat-file commit HEAD >result &&
47
+ grep Dollar result &&
48
+ ! grep "second commit" result
49
+ )
50
+ '
51
+
35
52
test_done
You can’t perform that action at this time.
0 commit comments