altsem / altsem/gitu

Showing a file’s history with the `log` command

Open
#123 0 comments 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.