forked from gitgitgadget/git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When no positional arguments are passed to `git ls-tree`, it currently prints "usage" info to stderr and exits with code 129. A more intuitive default would be to operate on the `HEAD` commit's tree (similarly to `git show`, `git log`, and possibly others). This patch updates `git ls-tree [options...]` to operate identically to `git ls-tree [options...] HEAD`, updates the docs to reflect that `<tree-ish>` is optional (and `[path...]` args can only be provided if a `<tree-ish>` is explicitly provided first), and duplicates some existing test cases to omit the `HEAD` argument to `ls-tree` (verifying that `ls-tree` behaves identically whether `HEAD` is provided or not). Signed-off-by: Ryan Williams <[email protected]>
- Loading branch information
1 parent
ac83bc5
commit a60036d
Showing
3 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters