Re: Wishlist: git commit --no-edit

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: Wishlist: git commit --no-edit

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:55:10

nisse@lysator.liu.se (Niels Möller) writes:
I'd like to have a git commit option which is the opposite of --edit, to
use the selected commit message as is, without invoking any editor.

Main use case I see would be

  git commit --amend --no-edit
Err, isn't this already working? (maybe your version of Git is too old,
but my 1.7.9.5 does this at least)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: Wishlist: git commit --no-edit

From: Jeff King <hidden>
Date: 2016-06-15 22:55:10

On Fri, Nov 02, 2012 at 10:42:24AM +0100, Matthieu Moy wrote:
nisse@lysator.liu.se (Niels Möller) writes:
quoted
I'd like to have a git commit option which is the opposite of --edit, to
use the selected commit message as is, without invoking any editor.

Main use case I see would be

  git commit --amend --no-edit
Err, isn't this already working? (maybe your version of Git is too old,
but my 1.7.9.5 does this at least)
Yup, should be working since 1.7.9.

  $ git tag --contains ':/commit: honour --no-edit' |
    sort -V |
    head -1
  v1.7.9

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help