提交 4ca8ae71 编写于 作者: J Junio C Hamano

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
...@@ -3847,7 +3847,7 @@ static void add_index_file(const char *path, unsigned mode, void *buf, unsigned ...@@ -3847,7 +3847,7 @@ static void add_index_file(const char *path, unsigned mode, void *buf, unsigned
const char *s = buf; const char *s = buf;
if (get_sha1_hex(s + strlen("Subproject commit "), ce->sha1)) if (get_sha1_hex(s + strlen("Subproject commit "), ce->sha1))
die(_("corrupt patch for subproject %s"), path); die(_("corrupt patch for submodule %s"), path);
} else { } else {
if (!cached) { if (!cached) {
if (lstat(path, &st) < 0) if (lstat(path, &st) < 0)
......
...@@ -673,8 +673,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix) ...@@ -673,8 +673,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
OPT_SET_INT(0, "sparse", &dense, OPT_SET_INT(0, "sparse", &dense,
N_("show merges reachable from only one tip"), 0), N_("show merges reachable from only one tip"), 0),
OPT_SET_INT(0, "date-order", &sort_order, OPT_SET_INT(0, "date-order", &sort_order,
N_("show commits where no parent comes before its " N_("topologically sort, maintaining date order "
"children"), "where possible"),
REV_SORT_BY_COMMIT_DATE), REV_SORT_BY_COMMIT_DATE),
{ OPTION_CALLBACK, 'g', "reflog", &reflog_base, N_("<n>[,<base>]"), { OPTION_CALLBACK, 'g', "reflog", &reflog_base, N_("<n>[,<base>]"),
N_("show <n> most recent ref-log entries starting at " N_("show <n> most recent ref-log entries starting at "
......
...@@ -199,9 +199,9 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout ...@@ -199,9 +199,9 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout
break; break;
case S_IFGITLINK: case S_IFGITLINK:
if (to_tempfile) if (to_tempfile)
return error("cannot create temporary subproject %s", path); return error("cannot create temporary submodule %s", path);
if (mkdir(path, 0777) < 0) if (mkdir(path, 0777) < 0)
return error("cannot create subproject directory %s", path); return error("cannot create submodule directory %s", path);
break; break;
default: default:
return error("unknown file mode for %s in index", path); return error("unknown file mode for %s in index", path);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册