Re: [PATCH 1/3] git-branch: add --track and --no-track options

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Monday, March 5, 2007 - 10:16 am

Hi,

On Mon, 5 Mar 2007, Paolo Bonzini wrote:


Yes, you also check real_ref instead of checking if dwim_ref() returned 0. 
I feel a little bit uneasy about that, since there is no guarantee that 
these values are left untouched, whereas the return value is guaranteed to 
behave as expected.

I also feel a little uneasy about having to parse a format in order to 
parse a string, when you know what that string should look like. For 
example, you could make the code even more compact by asking 
"(p = strstr(value, "/*:refs/remotes/"))".

But if other people do not feel as uneasy about these issues as I do, I 
certainly will not reject your patch.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 7:50 am)
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 8:58 am)
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 9:09 am)
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 10:16 am)
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 11:37 am)
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 4:09 pm)