Skip to content

Commit 81aa964

Browse files
committed
Merge branch 'maint'
* maint: git submodule: fix usage line doc/git-pack-refs: fix two grammar issues commit: abort commit if interactive add failed git-repack: use non-dashed update-server-info
2 parents 5dba359 + 835a3ee commit 81aa964

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Documentation/git-pack-refs.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ problem by stashing the refs in a single file,
2626
traditional `$GIT_DIR/refs` hierarchy, it is looked up in this
2727
file and used if found.
2828

29-
Subsequent updates to branches always creates new file under
29+
Subsequent updates to branches always create new files under
3030
`$GIT_DIR/refs` hierarchy.
3131

3232
A recommended practice to deal with a repository with too many
@@ -35,7 +35,7 @@ occasionally run `git pack-refs \--prune`. Tags are by
3535
definition stationary and are not expected to change. Branch
3636
heads will be packed with the initial `pack-refs --all`, but
3737
only the currently active branch heads will become unpacked,
38-
and next `pack-refs` (without `--all`) will leave them
38+
and the next `pack-refs` (without `--all`) will leave them
3939
unpacked.
4040

4141

builtin-commit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
224224
const char **pathspec = NULL;
225225

226226
if (interactive) {
227-
interactive_add(argc, argv, prefix);
227+
if (interactive_add(argc, argv, prefix) != 0)
228+
die("interactive add failed");
228229
if (read_cache_preload(NULL) < 0)
229230
die("index file corrupt");
230231
commit_style = COMMIT_AS_IS;

git-repack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,5 @@ fi
181181

182182
case "$no_update_info" in
183183
t) : ;;
184-
*) git-update-server-info ;;
184+
*) git update-server-info ;;
185185
esac

git-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Copyright (c) 2007 Lars Hjemli
66

77
USAGE="[--quiet] [--cached] \
8-
[add <repo> [-b branch] <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] \
8+
[add [-b branch] <repo> <path>]|[status|init|update [-i|--init] [-N|--no-fetch]|summary [-n|--summary-limit <n>] [<commit>]] \
99
[--] [<path>...]|[foreach <command>]|[sync [--] [<path>...]]"
1010
OPTIONS_SPEC=
1111
. git-sh-setup

0 commit comments

Comments
 (0)