Skip to content

Commit f43e2fd

Browse files
committed
Merge branch 'maint'
* maint: t7401: squelch garbage output Documentation/git-submodule: typofix Fix config key miscount in url.*.insteadOf Docs gitk: Explicitly mention the files that gitk uses (~/.gitk) Document -w option to shortlog bisect: report bad rev better
2 parents a53f2ec + 02604e2 commit f43e2fd

File tree

8 files changed

+23
-12
lines changed

8 files changed

+23
-12
lines changed

Documentation/git-shortlog.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ git-shortlog - Summarize 'git log' output
88
SYNOPSIS
99
--------
1010
[verse]
11-
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e]
12-
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [<committish>...]
11+
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e] [-w]
12+
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [-w[<width>[,<indent1>[,<indent2>]]]] [<committish>...]
1313

1414
DESCRIPTION
1515
-----------
@@ -35,6 +35,12 @@ OPTIONS
3535
-e, \--email::
3636
Show the email address of each author.
3737

38+
-w[<width>[,<indent1>[,<indent2>]]]::
39+
Linewrap the output by wrapping each line at `width`. The first
40+
line of each entry is indented by `indent1` spaces, and the second
41+
and subsequent lines are indented by `indent2` spaces. `width`,
42+
`indent1`, and `indent2` default to 76, 6 and 9 respectively.
43+
3844
FILES
3945
-----
4046

Documentation/git-submodule.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ OPTIONS
7070
-n, --summary-limit::
7171
This option is only valid for the summary command.
7272
Limit the summary size (number of commits shown in total).
73-
Giving 0 will disable the summary; a negative number means unlimted
73+
Giving 0 will disable the summary; a negative number means unlimited
7474
(the default). This limit only applies to modified submodules. The
7575
size is always limited to 1 for added/deleted/typechanged submodules.
7676

Documentation/gitk.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ gitk --max-count=100 --all \-- Makefile::
7474
Show at most 100 changes made to the file 'Makefile'. Instead of only
7575
looking for changes in the current branch look in all branches.
7676

77+
Files
78+
-----
79+
Gitk creates the .gitk file in your $HOME directory to store preferences
80+
such as display options, font, and colors.
81+
7782
See Also
7883
--------
7984
'qgit(1)'::

builtin-shortlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "shortlog.h"
1010

1111
static const char shortlog_usage[] =
12-
"git-shortlog [-n] [-s] [-e] [<commit-id>... ]";
12+
"git-shortlog [-n] [-s] [-e] [-w] [<commit-id>... ]";
1313

1414
static int compare_by_number(const void *a1, const void *a2)
1515
{

git-bisect.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ bisect_state() {
159159
shift
160160
for rev in "$@"
161161
do
162-
rev=$(git rev-parse --verify "$rev^{commit}") ||
162+
sha=$(git rev-parse --verify "$rev^{commit}") ||
163163
die "Bad rev input: $rev"
164-
bisect_write "$state" "$rev"
164+
bisect_write "$state" "$sha"
165165
done ;;
166166
*,bad)
167167
die "'git bisect bad' can take only one argument." ;;

remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static int handle_config(const char *key, const char *value)
315315
}
316316
if (!prefixcmp(key, "url.")) {
317317
struct rewrite *rewrite;
318-
name = key + 5;
318+
name = key + 4;
319319
subkey = strrchr(name, '.');
320320
if (!subkey)
321321
return 0;

t/t5516-fetch-push.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ test_expect_success 'fetch with wildcard' '
103103
test_expect_success 'fetch with insteadOf' '
104104
mk_empty &&
105105
(
106-
TRASH=$(pwd) &&
106+
TRASH=$(pwd)/ &&
107107
cd testrepo &&
108-
git config url./$TRASH/.insteadOf trash/
108+
git config url.$TRASH.insteadOf trash/
109109
git config remote.up.url trash/. &&
110110
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
111111
git fetch up &&
@@ -145,8 +145,8 @@ test_expect_success 'push with wildcard' '
145145

146146
test_expect_success 'push with insteadOf' '
147147
mk_empty &&
148-
TRASH=$(pwd) &&
149-
git config url./$TRASH/.insteadOf trash/ &&
148+
TRASH=$(pwd)/ &&
149+
git config url.$TRASH.insteadOf trash/ &&
150150
git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
151151
(
152152
cd testrepo &&

t/t7401-submodule-summary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ commit_file () {
3030
}
3131

3232
test_create_repo sm1 &&
33-
add_file . foo
33+
add_file . foo >/dev/null
3434

3535
head1=$(add_file sm1 foo1 foo2)
3636

0 commit comments

Comments
 (0)