[PATCH 2/2] gitmodules: ignore untracked files in submodules

Lubomir I. Ivanov neolit123 at gmail.com
Wed Dec 13 12:22:25 PST 2017


Normally doing 'git status' without '-u' would not
show untracked files in the main repository. But
still, it will indicated that there are
untracked files in a submodules. Sometimes this
is a good thing, sometimes not.

This patch adds the option to ignore the current
libdc submodule's untracked files.

One can still look for the submodule local status
by doing a:
   cd libdivecomputer
   git status

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---

this is a bit of selfish change, since i have a custom
build script for libdc inside the folder, but maybe this
is a good thing to do?
---
 .gitmodules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitmodules b/.gitmodules
index f095dd9f5..d05f2292a 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -2,3 +2,4 @@
 	path = libdivecomputer
 	url = git://github.com/Subsurface-divelog/libdc.git
 	branch = Subsurface-branch
+	ignore = untracked
-- 
2.15.0.windows.1



More information about the subsurface mailing list