Junio C Hamano
e7ffa38c6e
write_file_v(): do not leave incomplete line at the end
...
All existing callers to this function use it to produce a text file
or an empty file, and a new callsite that mimick them must end their
payload with a LF. If they forget to do so, the resulting file will
end with an incomplete line.
Teach write_file_v() to complete the incomplete line, if exists, so
that the callers do not have to.
With this, the caller-side fix in builtin/am.c becomes unnecessary.
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2015-08-25 12:48:39 -07:00
..
2015-06-25 10:47:46 -07:00
2015-08-25 12:48:39 -07:00
2014-07-16 11:10:11 -07:00
2015-06-24 12:21:39 -07:00
2015-08-03 11:01:27 -07:00
2015-08-24 13:09:02 -07:00
2015-05-08 10:52:11 -07:00
2015-06-26 09:24:42 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-05-05 10:31:51 -07:00
2015-07-13 14:02:19 -07:00
2015-06-16 14:33:47 -07:00
2015-08-03 11:01:17 -07:00
2015-01-14 09:32:04 -08:00
2014-12-29 09:32:45 -08:00
2015-06-29 11:39:07 -07:00
2015-06-05 12:00:04 -07:00
2014-12-01 11:00:18 -08:00
2015-05-25 12:19:29 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2014-10-01 13:56:14 -07:00
2015-06-22 13:17:12 -07:00
2015-01-14 09:32:04 -08:00
2015-06-22 13:17:10 -07:00
2015-06-22 13:17:12 -07:00
2015-08-03 10:24:07 -07:00
2015-08-03 11:01:18 -07:00
2015-07-13 14:02:02 -07:00
2014-10-07 11:09:16 -07:00
2015-04-20 15:28:34 -07:00
2015-05-26 13:49:25 -07:00
2015-03-20 13:11:53 -07:00
2015-08-03 11:01:18 -07:00
2015-08-24 13:09:02 -07:00
2014-10-13 13:55:27 -07:00
2015-08-03 11:01:27 -07:00
2015-03-31 14:53:08 -07:00
2015-01-14 09:32:04 -08:00
2014-12-01 11:33:45 -08:00
2015-01-14 09:32:04 -08:00
2014-10-07 10:49:57 -07:00
2015-01-14 09:32:04 -08:00
2015-02-22 12:28:25 -08:00
2015-01-14 09:32:04 -08:00
2014-09-02 11:02:58 -07:00
2015-06-05 12:17:36 -07:00
2015-01-14 09:32:04 -08:00
2015-05-25 12:19:29 -07:00
2015-01-14 09:32:04 -08:00
2015-06-22 15:07:21 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-03-13 22:43:14 -07:00
2015-01-14 09:32:04 -08:00
2015-07-13 14:02:02 -07:00
2015-06-18 13:18:59 -07:00
2015-03-14 15:08:35 -07:00
2014-10-01 13:56:14 -07:00
2015-06-23 14:27:37 -07:00
2015-05-25 12:19:30 -07:00
2014-10-07 11:09:16 -07:00
2015-06-22 13:17:10 -07:00
2015-05-11 14:23:39 -07:00
2015-08-03 11:01:10 -07:00
2015-01-14 09:32:04 -08:00
2014-10-01 13:56:14 -07:00
2015-07-10 14:26:13 -07:00
2015-07-15 10:30:54 -07:00
2015-01-14 09:32:04 -08:00
2015-05-20 13:49:10 -07:00
2015-01-07 19:56:44 -08:00
2015-06-29 11:39:07 -07:00
2015-06-29 11:39:07 -07:00
2015-05-25 12:19:32 -07:00
2015-01-14 09:32:04 -08:00
2015-05-25 12:19:33 -07:00
2015-06-23 14:27:34 -07:00
2015-05-26 13:24:46 -07:00
2015-06-22 13:17:14 -07:00
2015-06-22 14:20:47 -07:00
2015-01-14 09:32:04 -08:00
2015-06-22 14:20:47 -07:00
2015-08-24 13:09:02 -07:00