Skip to content

Commit 4ca8ae7

Browse files
committed
Merge branch 'tr/do-not-call-submodules-subprojects'
* tr/do-not-call-submodules-subprojects: show-branch: fix description of --date-order apply, entry: speak of submodules instead of subprojects
2 parents e2ecd25 + 465cf8c commit 4ca8ae7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

builtin/apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3847,7 +3847,7 @@ static void add_index_file(const char *path, unsigned mode, void *buf, unsigned
38473847
const char *s = buf;
38483848

38493849
if (get_sha1_hex(s + strlen("Subproject commit "), ce->sha1))
3850-
die(_("corrupt patch for subproject %s"), path);
3850+
die(_("corrupt patch for submodule %s"), path);
38513851
} else {
38523852
if (!cached) {
38533853
if (lstat(path, &st) < 0)

builtin/show-branch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
673673
OPT_SET_INT(0, "sparse", &dense,
674674
N_("show merges reachable from only one tip"), 0),
675675
OPT_SET_INT(0, "date-order", &sort_order,
676-
N_("show commits where no parent comes before its "
677-
"children"),
676+
N_("topologically sort, maintaining date order "
677+
"where possible"),
678678
REV_SORT_BY_COMMIT_DATE),
679679
{ OPTION_CALLBACK, 'g', "reflog", &reflog_base, N_("<n>[,<base>]"),
680680
N_("show <n> most recent ref-log entries starting at "

entry.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout
199199
break;
200200
case S_IFGITLINK:
201201
if (to_tempfile)
202-
return error("cannot create temporary subproject %s", path);
202+
return error("cannot create temporary submodule %s", path);
203203
if (mkdir(path, 0777) < 0)
204-
return error("cannot create subproject directory %s", path);
204+
return error("cannot create submodule directory %s", path);
205205
break;
206206
default:
207207
return error("unknown file mode for %s in index", path);

0 commit comments

Comments
 (0)