logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

git-stamp - Stamp the last commit message

Author

       Written by Damien Tardy-Panis <damien@tardypad.me>

Description

       Lets you amend the last commit with a stamp message.

       The command appends a message with its identifier to the last commit message.
       By default all stamps are appended as a new paragraph to the commit message.
       You can change this behavior by using the --replace flag.
       With  this flag, all the related stamps with the same identifier will be removed first before the new one
       gets appended.

       WARNING! If a commit message without stamp have a line starting with the  same  identifier,  it  will  be
       interpreted as a stamp

Examples

       Commit message is

           | Fix timezone bug

       Reference the issues numbers from your bug tracker

           $ git stamp Issue FOO-123
           $ git stamp Issue FOO-456 \#close

           | Fix timezone bug
           |
           | Issue FOO-123
           |
           | Issue FOO-456 #close

       Link to its review page

           $ git stamp Review https://reviews.foo.org/r/4567/

           | Fix timezone bug
           |
           | Issue FOO-123
           |
           | Issue FOO-456 #close
           |
           | Review https://reviews.foo.org/r/4567/

       Replace previous issues with a new one
       (Note that the identifier is case insensitive)

           $ git stamp --replace issue BAR-123

           | Fix timezone bug
           |
           | Review https://reviews.foo.org/r/4567/
           |
           | issue BAR-123

Name

git-stamp - Stamp the last commit message

Options

       -r, --replace

           Replace all previous stamps in the last commit message that have the same identifier
           The identifier is case insensitive for this replacement

Reporting Bugs

       <https://github.com/tj/git-extras/issues>

See Also

       <https://github.com/tj/git-extras>

                                                  October 2024                                      GIT-STAMP(1)

Synopsis

gitstamp[<options>]<id>[<messages>]

See Also