Skip to content

Commit

Permalink
Merge branch 'maint-1.6.0' into maint
Browse files Browse the repository at this point in the history
* maint-1.6.0:
  builtin-fsck: fix off by one head count
  Documentation: let asciidoc align related options
  githooks.txt: add missing word
  builtin-commit.c: do not remove COMMIT_EDITMSG
  • Loading branch information
Junio C Hamano committed Jan 18, 2009
2 parents 8ee09ac + 3aed2fd commit 78f111e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Documentation/git-diff-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ OPTIONS
-------
include::diff-options.txt[]

-1 -2 -3 or --base --ours --theirs, and -0::
-1 --base::
-2 --ours::
-3 --theirs::
-0::
Diff against the "base" version, "our branch" or "their
branch" respectively. With these options, diffs for
merged entries are not shown.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/githooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ This hook is invoked by 'git-commit' right after preparing the
default log message, and before the editor is started.

It takes one to three parameters. The first is the name of the file
that the commit log message. The second is the source of the commit
that contains the commit log message. The second is the source of the commit
message, and can be: `message` (if a `-m` or `-F` option was
given); `template` (if a `-t` option was given or the
configuration option `commit.template` is set); `merge` (if the
Expand Down
1 change: 0 additions & 1 deletion builtin-commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ static int prepare_to_commit(const char *index_file, const char *prefix)
if (!commitable && !in_merge && !allow_empty &&
!(amend && is_a_merge(head_sha1))) {
run_status(stdout, index_file, prefix, 0);
unlink(commit_editmsg);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion builtin-fsck.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
}

heads = 0;
for (i = 1; i < argc; i++) {
for (i = 0; i < argc; i++) {
const char *arg = argv[i];
if (!get_sha1(arg, head_sha1)) {
struct object *obj = lookup_object(head_sha1);
Expand Down

0 comments on commit 78f111e

Please sign in to comment.