commit: pay attention to submodule.$name.ignore in .gitmodules
"git status" does not list a submodule with uncommitted working tree files as modified when "submodule.$name.ignore" is set to "dirty" in in-tree ".gitmodules" file. Both status and commit honor the setting in $GIT_DIR/config, but "commit" does not pick it up from .gitmodules, which is inconsistent. Teach "git commit" to pay attention to the setting in .gitmodules as well. Signed-off-by: Orgad Shaneh <orgads@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Orgad Shaneh committed
Sep 23, 2012 at 09:37 UTC
8f6811efed5451c72aac53f8ee12b1edcd426a73
1 file changed
+1
builtin/commit.c
+1
@@ -1256,6 +1256,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
1256
struct wt_status s;
1257
1258
wt_status_prepare(&s);
1259
+ gitmodules_config();
1260
git_config(git_commit_config, &s);
1261
in_merge = file_exists(git_path("MERGE_HEAD"));
1262
s.in_merge = in_merge;