Skip to content

angel-git/where-is-my-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Where is my commit

Simple pet project to find commits by commit message inside branches and tags. Built with V

Usage

⚠️ Windows users: This is just a wrapper of bash scripts using git under the hood. Use Git bash to run this tool.

Find commits in branches and tags

Usage: gw search [flags] <commit message>

Searches the commit message in branches and tags

Flags:
  -b  -branch         Containing branch name that you want to filter
  -t  -tag            Containing tag name that you want to filter
      -help           Prints help information.

Example:

gw search -tag MY_TAG_NAME -branch MY_BRANCHES D-19007

Searching for D-19007 in branches MY_BRANCHES and tags MY_TAG_NAME
Branches:
origin/10.0.MY_BRANCHES 11e0bd5297 - Author
origin/10.1.MY_BRANCHES 11e0bd5297 - Author
Tags:
MY_TAG_NAME-10.0.10 21c4e784b6 - Author
MY_TAG_NAME-10.0.11 41df034952 - Author
MY_TAG_NAME-10.0.12 41df034952 - Author
MY_TAG_NAME-10.0.12-alp 41df034952 - Author

Commits between 2 tags

Usage: gw diff <tag1> <tag2>

Shows the commits between 2 tags

Flags:
      -help           Prints help information.

Development

Install pre-commit git hook with:

git config core.hooksPath ./git-hooks

Formatting

Example of formatting gw.v

v fmt -w gw.v

Building

# for linux
v -os linux . -o build/gw-linux -prod
# for mac
v -os macos . -o build/gw-mac -prod
# for windows
v -os windows . -o build/gw-win -prod

If you have money to throw

"Buy Me A Coffee"