From e1f898639e906158fec26bdf3111d6f623288fa1 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 14 Jan 2016 17:57:55 +0100 Subject: 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 Signed-off-by: Junio C Hamano --- trailer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trailer.h') diff --git a/trailer.h b/trailer.h index 8eb25d565e..36b40b8176 100644 --- a/trailer.h +++ b/trailer.h @@ -1,6 +1,7 @@ #ifndef TRAILER_H #define TRAILER_H -void process_trailers(const char *file, int trim_empty, struct string_list *trailers); +void process_trailers(const char *file, int in_place, int trim_empty, + struct string_list *trailers); #endif /* TRAILER_H */ -- cgit v1.2.3