[PATCH] docs/pretty-formats: fix typo '% <()' -> '%<|()'

2018-02-27 Thread Mårten Kongstad
Remove erroneous space between % and < in '% <()'. Signed-off-by: Mårten Kongstad --- Documentation/pretty-formats.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index e664c08..6109

[PATCH] diff --shortstat --dirstat: remove duplicate output

2015-02-28 Thread Mårten Kongstad
to only include one dirstat part, calculated as specified by the --dirstat parameter. Also, add test for this. Signed-off-by: Mårten Kongstad --- diff.c | 2 +- t/t4047-diff-dirstat.sh | 52 + 2 files changed, 53 insertions(+),

[PATCH v2] diff --shortstat --dirstat: remove duplicate output

2015-02-28 Thread Mårten Kongstad
to only include one dirstat part, calculated as specified by the --dirstat parameter. Also, add test for this. Signed-off-by: Mårten Kongstad --- Good point about hardcoded values in the tests. How about instead we check that a specific directory appears exactly once in the output? diff.c

Re: [PATCH v2] diff --shortstat --dirstat: remove duplicate output

2015-03-01 Thread Mårten Kongstad
On Sun, Mar 01, 2015 at 11:25:53AM +0100, Torsten Bögershausen wrote: > On 2015-03-01 08.39, Mårten Kongstad wrote: > [] > > +test_expect_success '--shortstat --dirstat should output only one dirstat' > > ' > > + git diff --

Re: [PATCH v2] diff --shortstat --dirstat: remove duplicate output

2015-03-01 Thread Mårten Kongstad
On Sun, Mar 01, 2015 at 03:23:37PM +0100, Michael J Gruber wrote: [] > If I would have had to guess from the documentation: What does "git diff > --dirstat --shortstat" do? I would have answered: It displays both the > dirstat and the shortstat. > > So, is what you are trying to "fix" a peculiarit

[PATCH v3] diff --shortstat --dirstat: remove duplicate output

2015-03-02 Thread Mårten Kongstad
to only include one dirstat part, calculated as specified by the --dirstat parameter. Also, add test for this. Signed-off-by: Mårten Kongstad --- v3: change how tests count (part of) the dirstat number of lines: instead of 'grep -c', use 'grep >filename && test_line_cou

[PATCH] completion: remove duplicate block for "git commit -c"

2013-04-24 Thread Mårten Kongstad
Remove one of two consecutive, identical blocks for "git commit -c". Signed-off-by: Mårten Kongstad --- contrib/completion/git-completion.bash |7 --- 1 file changed, 7 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.