Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Sun, 4 May 2008 05:15:09 +0000 (22:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 May 2008 05:15:09 +0000 (22:15 -0700)
* maint:
checkout: don't rfc2047-encode oneline on detached HEAD
filter-branch: Documentation fix.

Documentation/git-filter-branch.txt
builtin-checkout.c
index 2a78549be597675cd9a271181c9b142450b311e5..6454e49bf2805fcf0a000ed6f96ff9f73d718299 100644 (file)
@@ -243,12 +243,12 @@ committed a merge between P1 and P2, it will be propagated properly
 and all children of the merge will become merge commits with P1,P2
 as their parents instead of the merge commit.
 
-You can rewrite the commit log messages using `--message-filter`.  For
+You can rewrite the commit log messages using `--msg-filter`.  For
 example, `git-svn-id` strings in a repository created by `git-svn` can
 be removed this way:
 
 -------------------------------------------------------
-git filter-branch --message-filter '
+git filter-branch --msg-filter '
        sed -e "/^git-svn-id:/d"
 '
 -------------------------------------------------------
index 14b2fe7760766c796d78fd910882c4ef8b917b98..10ec137ccec7d7f281562817d81a1035c4aa6124 100644 (file)
@@ -142,7 +142,7 @@ static void describe_detached_head(char *msg, struct commit *commit)
        struct strbuf sb;
        strbuf_init(&sb, 0);
        parse_commit(commit);
-       pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, "", "", 0, 0);
+       pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, NULL, NULL, 0, 0);
        fprintf(stderr, "%s %s... %s\n", msg,
                find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf);
        strbuf_release(&sb);