Skip to content

Commit 471793f

Browse files
committed
Merge branch 'maint'
* maint: checkout: don't rfc2047-encode oneline on detached HEAD filter-branch: Documentation fix.
2 parents 47458bb + 6233a52 commit 471793f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/git-filter-branch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ committed a merge between P1 and P2, it will be propagated properly
243243
and all children of the merge will become merge commits with P1,P2
244244
as their parents instead of the merge commit.
245245

246-
You can rewrite the commit log messages using `--message-filter`. For
246+
You can rewrite the commit log messages using `--msg-filter`. For
247247
example, `git-svn-id` strings in a repository created by `git-svn` can
248248
be removed this way:
249249

250250
-------------------------------------------------------
251-
git filter-branch --message-filter '
251+
git filter-branch --msg-filter '
252252
sed -e "/^git-svn-id:/d"
253253
'
254254
-------------------------------------------------------

builtin-checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void describe_detached_head(char *msg, struct commit *commit)
142142
struct strbuf sb;
143143
strbuf_init(&sb, 0);
144144
parse_commit(commit);
145-
pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, "", "", 0, 0);
145+
pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, 0, NULL, NULL, 0, 0);
146146
fprintf(stderr, "%s %s... %s\n", msg,
147147
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf);
148148
strbuf_release(&sb);

0 commit comments

Comments
 (0)