Showing a file’s history with the `log` command
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.9k
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
It’d be great to be able to run the log command on file paths as well.
Currently, the command only expects a revision/range, and I would like it to accept a file path (interactive prompt?) and provide with similar functionality provided by the following equivalent commands:
tig <path>
git log -- <path>
The resulting list of commits would be displayed in a view no different than the already existing “regular” revision/range log.
Related: #62, #101.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing log command and its revision/range handling, then compare the requested behavior with tig <path> and git log -- <path>. Done means a file path is accepted and its commit history appears in the same view as a regular revision/range log; review related issues #62 and #101 for context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100