]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
interpret-trailers: add option for in-place editing
authorTobias Klauser <tklauser@distanz.ch>
Thu, 14 Jan 2016 16:57:55 +0000 (17:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2016 20:22:17 +0000 (12:22 -0800)
commite1f898639e906158fec26bdf3111d6f623288fa1
tree39d2eea730efc4fcf6473f19e09e05b500b15a7d
parentd0d2344ad84cde7fddedc1e141296607af673454
interpret-trailers: add option for in-place editing

Add a command line option --in-place to support in-place editing akin to
sed -i.  This allows to write commands like the following:

  git interpret-trailers --trailer "X: Y" a.txt > b.txt && mv b.txt a.txt

in a more concise way:

  git interpret-trailers --trailer "X: Y" --in-place a.txt

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-interpret-trailers.txt
builtin/interpret-trailers.c
t/t7513-interpret-trailers.sh
trailer.c
trailer.h