Skip to content

Commit 3ba4f3a

Browse files
committed
Merge branch 'maint-1.6.2' into maint
* maint-1.6.2: git-show-ref.txt: remove word and make consistent git-svn documentation: fix typo in 'rebase vs. pull/merge' section use xstrdup, not strdup in ll-merge.c
2 parents ef52aaf + cd12f53 commit 3ba4f3a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Documentation/git-show-ref.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The --exclude-existing form is a filter that does the inverse, it shows the
2424
refs from stdin that don't exist in the local repository.
2525

2626
Use of this utility is encouraged in favor of directly accessing files under
27-
in the `.git` directory.
27+
the `.git` directory.
2828

2929
OPTIONS
3030
-------
@@ -50,7 +50,7 @@ OPTIONS
5050
-s::
5151
--hash::
5252

53-
Only show the SHA1 hash, not the reference name. When also using
53+
Only show the SHA1 hash, not the reference name. When combined with
5454
--dereference the dereferenced tag will still be shown after the SHA1.
5555

5656
--verify::

Documentation/git-svn.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ pulled or merged from. This is because the author favored
615615
If you use `git svn set-tree A..B` to commit several diffs and you do
616616
not have the latest remotes/git-svn merged into my-branch, you should
617617
use `git svn rebase` to update your work branch instead of `git pull` or
618-
`git merge`. `pull`/`merge' can cause non-linear history to be flattened
618+
`git merge`. `pull`/`merge` can cause non-linear history to be flattened
619619
when committing into SVN, which can lead to merge commits reversing
620620
previous commits in SVN.
621621

ll-merge.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static int read_merge_config(const char *var, const char *value, void *cb)
238238

239239
if (!strcmp(var, "merge.default")) {
240240
if (value)
241-
default_ll_merge = strdup(value);
241+
default_ll_merge = xstrdup(value);
242242
return 0;
243243
}
244244

@@ -272,7 +272,7 @@ static int read_merge_config(const char *var, const char *value, void *cb)
272272
if (!strcmp("name", ep)) {
273273
if (!value)
274274
return error("%s: lacks value", var);
275-
fn->description = strdup(value);
275+
fn->description = xstrdup(value);
276276
return 0;
277277
}
278278

@@ -295,14 +295,14 @@ static int read_merge_config(const char *var, const char *value, void *cb)
295295
* file named by %A, and signal that it has done with zero exit
296296
* status.
297297
*/
298-
fn->cmdline = strdup(value);
298+
fn->cmdline = xstrdup(value);
299299
return 0;
300300
}
301301

302302
if (!strcmp("recursive", ep)) {
303303
if (!value)
304304
return error("%s: lacks value", var);
305-
fn->recursive = strdup(value);
305+
fn->recursive = xstrdup(value);
306306
return 0;
307307
}
308308

0 commit comments

Comments
 (0)