From: Catalin Marinas Date: Tue, 23 Oct 2007 21:20:53 +0000 (+0100) Subject: Allow StGIT commands to run correctly in subdirectories X-Git-Tag: v0.14~37 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/d4356ac6143757131b58c95ca5c6a7b386cc6087?hp=d4356ac6143757131b58c95ca5c6a7b386cc6087 Allow StGIT commands to run correctly in subdirectories This is mainly achieved by checking the file arguments with git-ls-files. The patch solves two main issues - the refresh/diff/st can run properly in subdirectories and commands like diff and status may no longer get nonexistent files as arguments without complaining. If one wants to check the status/diff or refresh the files in a subdirectory, the command arguments should be "." and this is expanded by git-ls-files to the subdirectory content (recursively). The patch removes some asserts as they are no longer needed since checks are performed by git-ls-files. Signed-off-by: Catalin Marinas ---