git-ls-tree, git-rev-list, git-rev-parse: add pages#3644
Conversation
|
|
||
| - List the contents of the tree on a commit and show only filenames: | ||
|
|
||
| `git ls-tree --name-only {{HEAD~3}}` |
There was a problem hiding this comment.
I would change HEAD~3 to HEAD~N and note it shows the situation N commits ago or something like that.
There was a problem hiding this comment.
I would rather not put it as {{{HEAD}}~{{N}}. Maybe just HEAD~{{N}}?
/cc @waldyrious what would be the proper syntax here?
There was a problem hiding this comment.
@BeLi4L maybe wait for a consensus to emerge in these discussions before applying the changes, otherwise you may need to do a lot of back and forth 😅
As for the syntax, I'm afraid we're making things too complex. The syntax for relative references is not something that this page is responsible for introducing. My suggestion is to simply include the 3 in the command description, and use {{HEAD~3}} as the token, rather than generalize with N. WDYT?
There was a problem hiding this comment.
Or maybe we could bypass this conundrum altogether by using another type of reference, like a tag (e.g. {{v1.2.3}}).
There was a problem hiding this comment.
@zdroid I'd like to know what you dislike about using a tag, in light of my comments above.
There was a problem hiding this comment.
Isn't the term commit-ish used in the man pages?
There was a problem hiding this comment.
Any news on this? I can use commit-ish if you're all OK with that
There was a problem hiding this comment.
The current version is fine with me. Maybe @sbrl wants to use "commit-ish" instead, both work for me.
|
The build Please fix the error(s) and push again. |
Co-Authored-By: Waldir Pimenta <waldyrious@gmail.com>
Co-Authored-By: Waldir Pimenta <waldyrious@gmail.com>
common/,linux/, etc.)