Re: [PATCH 3/5] sequencer: sequencer state is useless without todo
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Nov 15, 2011, 09:52 UTC
- Message-ID
- <20111115095225.GB23139@elie.hsd1.il.comcast.net>
- In-Reply-To
- <CALkWK0nUuzn2_itdACHLQBpUaVv97tFAjNGdVBEhWC7a6Rp75w@mail.gmail.com>
Ramkumar Ramachandra wrote:
> Yeah, git_path() writes to one of the four static buffers in > path.c:get_pathname(). Which brings me to: what should (can) we do > about it?
Just use a sane idiom. Which means: as few git_path() values in flight at a time as possible.
In other words, do not save the git_path() result in a variable, but pass it directly to whatever computation needs to use it.