Skip to content

Conversation

@arrbee
Copy link

@arrbee arrbee commented Dec 9, 2011

This adds the git commit-message command with actions: add, edit, clear, and show (the default). You can use it to build up a commit message while you are working, simply running:

git commit-message add A quick reminder

When you eventually do the git commit, the message that you have accumulated will be the seed for the commit message to be used.

Note that this sets up prepare-commit-msg and post-commit hooks for you when used so that it can inject the commit message and clear it out after the commit.

This adds the `git commit-message` command with actions: add,
edit, clear, and show (the default).  You can use it to build
up a commit message while you are working, simply running:

    git commit-message add A quick reminder

When you eventually do the `git commit`, the message that you
have accumulated will be the seed for the commit message to be
used.

Note that this sets up prepare-commit-msg and post-commit hooks
for you when used so that it can inject the commit message and
clear it out after the commit.
@tj
Copy link
Owner

tj commented Dec 9, 2011

neat! i'll pull it down when i have a chance and check it out

@arrbee
Copy link
Author

arrbee commented Dec 9, 2011

Beware - the one issue I think this may have is that if there is an existing prepare-commit-msg or post-commit hook, it kind of assumes that it is safe to append its own bash statements to the end of the hook, which is probably a little scary.

@hemanth
Copy link
Collaborator

hemanth commented Jul 9, 2014

@arrbee Willing to proceed on this?

@arrbee
Copy link
Author

arrbee commented Jul 23, 2014

@hemanth I never really got any feedback on it and I don't use this anymore myself. I'd be happy just to close unless you think that anyone would actually use this. Nowadays I'm just in the habit of making more and smaller commits, so I think this type of extension probably encourages bad habits.

@hemanth
Copy link
Collaborator

hemanth commented Jul 24, 2014

@arrbee Sounds good, thanks.

@hemanth hemanth closed this Jul 24, 2014
nicokosi added a commit to nicokosi/git-extras that referenced this pull request Jun 1, 2021
I can confirm it also works Linux. I just installed `git-extras` via `Homebrew` on my Ubuntu machine:
```sh
$ uname -srv
Linux 5.8.0-53-generic tj#60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021

$ brew install git-extras
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/cask and homebrew/core).
==> New Formulae
code-minimap              principalmapper           pywhat
==> Updated Formulae
Updated 70 formulae.
==> Updated Casks
Updated 36 casks.

==> Downloading https://ghcr.io/v2/linuxbrew/core/git-extras/manifests/6.2.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/git-extras/blobs/sha256:5a86
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/
######################################################################## 100.0%
==> Pouring git-extras--6.2.0.x86_64_linux.bottle.tar.gz
==> Caveats
To load Zsh completions, add the following to your .zshrc:
  source /home/linuxbrew/.linuxbrew/opt/git-extras/share/git-extras/git-extras-completion.zsh
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/git-extras/6.2.0: 146 files, 388.4KB
```
spacewander pushed a commit to spacewander/git-extras that referenced this pull request Jul 9, 2021
I can confirm it also works Linux. I just installed `git-extras` via `Homebrew` on my Ubuntu machine:
```sh
$ uname -srv
Linux 5.8.0-53-generic tj#60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021

$ brew install git-extras
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/cask and homebrew/core).
==> New Formulae
code-minimap              principalmapper           pywhat
==> Updated Formulae
Updated 70 formulae.
==> Updated Casks
Updated 36 casks.

==> Downloading https://ghcr.io/v2/linuxbrew/core/git-extras/manifests/6.2.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/git-extras/blobs/sha256:5a86
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/
######################################################################## 100.0%
==> Pouring git-extras--6.2.0.x86_64_linux.bottle.tar.gz
==> Caveats
To load Zsh completions, add the following to your .zshrc:
  source /home/linuxbrew/.linuxbrew/opt/git-extras/share/git-extras/git-extras-completion.zsh
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/git-extras/6.2.0: 146 files, 388.4KB
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants