Re: [PATCH 1/3] git-branch: add --track and --no-track options
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 5, 2007, 21:27 UTC
- Message-ID
- <7v3b4jxtx8.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <45EC8959.1090303@lu.unisi.ch>
Paolo Bonzini <paolo.bonzini@lu.unisi.ch> writes:
> Actually ISTR that %n is not counted in the return value and that's why I wrote the code this way.
Yes, that is correct. Some C lib implementations seem to count %n and others don't so it is not reliable. That is one of the reasons I personally have stayed away from fancier sscanf() constructs, both inside and outside git project.