Skip to content

Commit 78f111e

Browse files
committed
Merge branch 'maint-1.6.0' into maint
* 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
2 parents 8ee09ac + 3aed2fd commit 78f111e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Documentation/git-diff-files.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ OPTIONS
2121
-------
2222
include::diff-options.txt[]
2323

24-
-1 -2 -3 or --base --ours --theirs, and -0::
24+
-1 --base::
25+
-2 --ours::
26+
-3 --theirs::
27+
-0::
2528
Diff against the "base" version, "our branch" or "their
2629
branch" respectively. With these options, diffs for
2730
merged entries are not shown.

Documentation/githooks.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This hook is invoked by 'git-commit' right after preparing the
9090
default log message, and before the editor is started.
9191

9292
It takes one to three parameters. The first is the name of the file
93-
that the commit log message. The second is the source of the commit
93+
that contains the commit log message. The second is the source of the commit
9494
message, and can be: `message` (if a `-m` or `-F` option was
9595
given); `template` (if a `-t` option was given or the
9696
configuration option `commit.template` is set); `merge` (if the

builtin-commit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ static int prepare_to_commit(const char *index_file, const char *prefix)
624624
if (!commitable && !in_merge && !allow_empty &&
625625
!(amend && is_a_merge(head_sha1))) {
626626
run_status(stdout, index_file, prefix, 0);
627-
unlink(commit_editmsg);
628627
return 0;
629628
}
630629

builtin-fsck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
628628
}
629629

630630
heads = 0;
631-
for (i = 1; i < argc; i++) {
631+
for (i = 0; i < argc; i++) {
632632
const char *arg = argv[i];
633633
if (!get_sha1(arg, head_sha1)) {
634634
struct object *obj = lookup_object(head_sha1);

0 commit comments

Comments
 (0)