diff options
author | Russell Belfer <rb@github.com> | 2013-03-26 09:19:39 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-03-26 09:19:39 +0400 |
commit | 37ee70fab4e6dcf35afc08c0edbe9f101d4abf2d (patch) | |
tree | e9bee47b3059bbc5189e0833b927a3bf50776bdf /src/submodule.c | |
parent | 0c289dd7c6831f4f402f9581b46d0c920053abf9 (diff) |
Implement GIT_STATUS_OPT_EXCLUDE_SUBMODULES
This option has been sitting unimplemented for a while, so I
finally went through and implemented it along with some tests.
As part of this, I improved the implementation of
GIT_DIFF_IGNORE_SUBMODULES so it be more diligent about avoiding
extra work and about leaving off delta records for submodules to
the greatest extent possible (though it may include them still
if you are request TYPECHANGE records).
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index 957766dfc..066a881cb 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -694,7 +694,7 @@ int git_submodule_open( git_buf_free(&path); /* if we have opened the submodule successfully, let's grab the HEAD OID */ - if (!error && !(submodule->flags & GIT_SUBMODULE_STATUS__WD_OID_VALID)) { + if (!error) { if (!git_reference_name_to_id( &submodule->wd_oid, *subrepo, GIT_HEAD_FILE)) submodule->flags |= GIT_SUBMODULE_STATUS__WD_OID_VALID; |