aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-17 22:39:49 -0800
committerJunio C Hamano <gitster@pobox.com>2009-01-17 22:39:49 -0800
commit78f111e12de40e2d9aa8d0774acc287f79862b13 (patch)
tree1c7f08c0e2ee31b86a2bfa1c010f5d7bddc3d0fb
parent8ee09acd8f3c96683ce2b81bb8ac8079f0e8a4fd (diff)
parent3aed2fda6f8233895be0d1142c4c4b407fb692c3 (diff)
downloadgit-78f111e12de40e2d9aa8d0774acc287f79862b13.tar.gz
git-78f111e12de40e2d9aa8d0774acc287f79862b13.tar.xz
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
-rw-r--r--Documentation/git-diff-files.txt5
-rw-r--r--Documentation/githooks.txt2
-rw-r--r--builtin-commit.c1
-rw-r--r--builtin-fsck.c2
4 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/git-diff-files.txt b/Documentation/git-diff-files.txt
index 5c8c1d95a..c52614156 100644
--- a/Documentation/git-diff-files.txt
+++ b/Documentation/git-diff-files.txt
@@ -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.
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index cfdae1efa..28a8abcf5 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -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
diff --git a/builtin-commit.c b/builtin-commit.c
index e88b78f81..977ea09c5 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -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;
}
diff --git a/builtin-fsck.c b/builtin-fsck.c
index 297b2c41c..5c4c77ada 100644
--- a/builtin-fsck.c
+++ b/builtin-fsck.c
@@ -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);