Merge "The --why parameter in whichgit should be optional"
This commit is contained in:
commit
fe7277fdde
1 changed files with 6 additions and 5 deletions
|
@ -95,11 +95,12 @@ def main(argv):
|
|||
# Print the list of git directories that has one or more of the sources in it
|
||||
for project in sorted(get_referenced_projects(get_git_dirs(), sources)):
|
||||
print(project)
|
||||
if "*" in args.why or project in args.why:
|
||||
prefix = project + "/"
|
||||
for f in sources:
|
||||
if f.startswith(prefix):
|
||||
print(" " + f)
|
||||
if args.why:
|
||||
if "*" in args.why or project in args.why:
|
||||
prefix = project + "/"
|
||||
for f in sources:
|
||||
if f.startswith(prefix):
|
||||
print(" " + f)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in a new issue