Add no-git-links option to ls-files
PATCH 1/1 Add no-git-links option to ls-files
Setting the option allows to list files in submodules.
Signed-off-by Roland Schulz <[email protected]>
--- Documentation/git-ls-files.txt | 4 ++++ builtin/ls-files.c | 3 +++ 2 files changed, 7 insertions(+)
Documentation/git-ls-files.txt +4 -0
@@ -64,6 +64,10 @@ OPTIONS --no-empty-directory:: Do not list empty directories. Has no effect without --directory. +--no-git-links:: + If a directory looks like a repository, then show its whole + contents not just its name. + -u:: --unmerged:: Show unmerged files in the output (forces --stage)
builtin/ls-files.c +3 -0
@@ -479,6 +479,9 @@ int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)OPT_NEGBIT (0 ,"empty-directory" , &dir.flags,N_ ("don't show empty directories" ),DIR_HIDE_EMPTY_DIRECTORIES ), +OPT_NEGBIT (0 ,"git-links" , &dir.flags, +N_ ("show content for directories containing repositories" ), +DIR_NO_GITLINKS ),OPT_BOOL ('u' ,"unmerged" , &show_unmerged,N_ ("show unmerged files in the output" )), OPT_BOOL(0, "resolve-undo", &show_resolve_undo,
Signature · 1 line
2.0.0.239.g0953113.dirty