threads / discuss / 27123

History for Strbuf and ParseOpts?

Subject: History for Strbuf and ParseOpts?

## tl;dr

3 messages between Apr 17, 2011 and Apr 17, 2011.

replies: 2people: 3as markdown or json

David Chanters· Apr 17, 2011, 15:13 UTC · lore
[ Please CC me on replies.  Thanks! ]i,
Hi,

I shouldn't conflate to two (parseopts and strbuf) but can someone tell me how these two things came about -- that is, when/why/how? If I understand strbuf correctly, it's a transparent and dynamic way of handling strings? If so, how useful would it be as a separate project?

TIA!
David
Jakub Narebski· Apr 17, 2011, 18:19 UTC · re: David Chanters · lore

Re: History for Strbuf and ParseOpts?

David Chanters <david.chanters@googlemail.com> writes:
Show 5 quoted lines
> I shouldn't conflate to two (parseopts and strbuf) but can someone
> tell me how these two things came about -- that is, when/why/how?  If
> I understand strbuf correctly, it's a transparent and dynamic way of
> handling strings?  If so, how useful would it be as a separate
> project?

I don't have a pointers to exchange of emails that started the road to strbuf and parseopt, but both are described in the techical documentation (GIT API Documents):

  Documentation/techical/*
  http://www.kernel.org/pub/software/scm/git/docs/technical/api-index.html
  
  http://www.kernel.org/pub/software/scm/git/docs/technical/api-strbuf.html
  http://www.kernel.org/pub/software/scm/git/docs/technical/api-parse-options.html
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Junio C Hamano· Apr 17, 2011, 18:51 UTC · re: David Chanters · lore

Re: History for Strbuf and ParseOpts?

David Chanters <david.chanters@googlemail.com> writes:
> I shouldn't conflate to two (parseopts and strbuf) but can someone
> tell me how these two things came about -- that is, when/why/how?
I do this sort of digging fairly often.

I am not going to do this particular one myself, but the general procedure is to first run "git log --diff-filter=A strbuf.[ch] parse-options.[ch]" to find which commits introduced them (hence, learn who did it, when and why), then go back to the list archive to find the discussions that lead to these changes.

← back to recent threads