Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Junio C Hamano
Jonathan Nieder writes: > In this case, it is about readability. It's perhaps irrational, but I > find text much more readable and the intent to be clearer when > paragraphs are wrapped to a consistent width instead of lines breaking > at arbitrary points. Yeah I agree with that. Also a blank

Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Jonathan Nieder
Stefan Beller wrote: > From 4bec12b878ca02a1e80af3c265e7e7ab52ba17ce Mon Sep 17 00:00:00 2001 The above line causes "git am" to be unable to parse the message downloaded as an mbox, if I remember correctly. [...] > * break lines of commit message again to appease the taste of Jonathan ;) I hop

Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Stefan Beller
>From 4bec12b878ca02a1e80af3c265e7e7ab52ba17ce Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 20 Nov 2014 13:48:14 -0800 Subject: [PATCH v4] refs.c: add a function to append a reflog entry to a fd Move code to create the string for a ref and write it to a file descriptor from log_ref_w

Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Junio C Hamano
Stefan Beller writes: > From: Ronnie Sahlberg > > Move code to create the string for a ref and write it to a file descriptor > from log_ref_write and add it into a new dedicated function > log_ref_write_fd. > > For now the new function is only used from log_ref_write, but later > on we will call

Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Jonathan Nieder
Stefan Beller wrote: > On Thu, Nov 20, 2014 at 1:20 PM, Jonathan Nieder wrote: >> I don't understand why the above writes to a temporary variable and >> checks it, never to read that temporary again. >> >> I don't think that alone is a reason to block the patch, but it >> worries me in that the r

Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Stefan Beller
On Thu, Nov 20, 2014 at 1:20 PM, Jonathan Nieder wrote: >> >> For now the new function is only used from log_ref_write, but later >> on we will call this function from reflog transactions too. That means >> that we will end up with only a single place, where we write a >> reflog entry to a file in

Re: [PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Jonathan Nieder
Stefan Beller wrote: > From: Ronnie Sahlberg > > Move code to create the string for a ref and write it to a file descriptor > from log_ref_write and add it into a new dedicated function > log_ref_write_fd. > > For now the new function is only used from log_ref_write, but later > on we will call t

[PATCH v3] refs.c: add a function to append a reflog entry to a fd

2014-11-20 Thread Stefan Beller
From: Ronnie Sahlberg Move code to create the string for a ref and write it to a file descriptor from log_ref_write and add it into a new dedicated function log_ref_write_fd. For now the new function is only used from log_ref_write, but later on we will call this function from reflog transaction