tj / git-extras

GIT utilities -- repo summary, repl, changelog population, author commit percentages and more
MIT License
17.3k stars 1.21k forks source link

Add pathspec support in `git-missing` #1156

Closed Weyzu closed 1 month ago

Weyzu commented 1 month ago

This PR add pathspec support for the git-missing command. Users can now limit the commit difference to specific directories or files. Addition is particularly useful for big repositories where users are not concerned with other directories outside their usual workspace.

Pathspec is optional, command will work as usual for users not using it.

New Usage

git missing [<first branch>] <second branch> [<git log options>] [[--] <path>...]

Example

Compare differences between the current branch and master, limited to the src/ directory:

$ git missing master -- src/
< a1b2c3d feat: Add new component in src/
> d4e5f6g fix: Update existing module in src/
Weyzu commented 1 month ago

@hyperupcall Sorry for slight delay in response. Thank you for the ultra fast review and quality feedback. 👍🏻

hyperupcall commented 1 month ago

@Weyzu Thanks! Everything looks great to me! @spacewander what do you think?

Weyzu commented 1 month ago

@spacewander Sure thing, updated. :) (8716c18 + d3c1b3a) Let me know if I phrased it all correctly.

spacewander commented 1 month ago

Merged. Thanks!