Re: [PATCH] interpret-trailers: add option for in-place editing

2016-01-07 Thread Tobias Klauser
On 2016-01-06 at 20:02:23 +0100, Eric Sunshine wrote: > On Wed, Jan 6, 2016 at 8:34 AM, Tobias Klauser > wrote: > > 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

Re: [PATCH] interpret-trailers: add option for in-place editing

2016-01-06 Thread Eric Sunshine
On Wed, Jan 6, 2016 at 8:34 AM, Tobias Klauser wrote: > 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: > >

Re: [PATCH] interpret-trailers: add option for in-place editing

2016-01-06 Thread Tobias Klauser
Thanks for your feedback Matthieu! On 2016-01-06 at 15:19:45 +0100, Matthieu Moy wrote: > Tobias Klauser writes: > > > From: Tobias Klauser > > > > Add a command line option --in-place to support in-place editing akin to > > sed -i. This allows to write commands like the following: > > Sinc

Re: [PATCH] interpret-trailers: add option for in-place editing

2016-01-06 Thread Matthieu Moy
Tobias Klauser writes: > From: Tobias Klauser > > Add a command line option --in-place to support in-place editing akin to > sed -i. This allows to write commands like the following: Since -i is a common shortcut for --in-place (perl -i, sed -i), it probably makes sense to have it here too. OT

[PATCH] interpret-trailers: add option for in-place editing

2016-01-06 Thread Tobias Klauser
From: Tobias Klauser 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" --