Browse Source

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
maint
Junio C Hamano 16 years ago
parent
commit
81aa964976
  1. 4
      Documentation/git-pack-refs.txt
  2. 3
      builtin-commit.c
  3. 2
      git-repack.sh
  4. 2
      git-submodule.sh

4
Documentation/git-pack-refs.txt

@ -26,7 +26,7 @@ problem by stashing the refs in a single file, @@ -26,7 +26,7 @@ problem by stashing the refs in a single file,
traditional `$GIT_DIR/refs` hierarchy, it is looked up in this
file and used if found.

Subsequent updates to branches always creates new file under
Subsequent updates to branches always create new files under
`$GIT_DIR/refs` hierarchy.

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



3
builtin-commit.c

@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix) @@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
const char **pathspec = NULL;

if (interactive) {
interactive_add(argc, argv, prefix);
if (interactive_add(argc, argv, prefix) != 0)
die("interactive add failed");
if (read_cache_preload(NULL) < 0)
die("index file corrupt");
commit_style = COMMIT_AS_IS;

2
git-repack.sh

@ -181,5 +181,5 @@ fi @@ -181,5 +181,5 @@ fi

case "$no_update_info" in
t) : ;;
*) git-update-server-info ;;
*) git update-server-info ;;
esac

2
git-submodule.sh

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
# Copyright (c) 2007 Lars Hjemli

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

Loading…
Cancel
Save