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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paolo Bonzini
Date: Monday, March 5, 2007 - 2:19 pm

>> There is.  The man page says "Scanning stops when an input character 

It cannot know that there *are* any pointers unless it goes on scanning the format string.  Since the function it varargs, it cannot *guess* that there are any without scanning that the documentation says does not happen.  Anyway...


Actually ISTR that %n is not counted in the return value and that's why I wrote the code this way.


It's not fair to not have any documentation in the code, force the contributor to reverse engineer the documentation, and say it is relying on an implementation detail.  In otherwise undocumented code, implementation == interface.

Paolo
-
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, Paolo Bonzini, (Mon Mar 5, 2:19 pm)
Re: [PATCH 1/3] git-branch: add --track and --no-track options, Johannes Schindelin, (Mon Mar 5, 4:09 pm)