Re: [PATCH 09/19] tree-diff.c: reserve space in "base" for pathname concatenation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nguyen Thai Ngoc Duy
Date: Tuesday, December 14, 2010 - 6:01 am

On Tue, Dec 14, 2010 at 3:21 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:

Just googled around and found this [1]. I'm going with strbuf so it
can be reallocated if necessary. A bit tricky because "base" can be
moved, but I think it's worth it.

[1] http://insanecoding.blogspot.com/2007/11/pathmax-simply-isnt.html
-- 
Duy
--
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:
[PATCH 00/19] nd/struct-pathspec (or pathspec unification [1]), =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 01/19] Add struct pathspec, =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 02/19] diff-no-index: use diff_tree_setup_paths(), =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 03/19] pathspec: cache string length when initializ ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 04/19] Convert struct diff_options to use struct pa ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 05/19] tree_entry_interesting(): remove dependency ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 06/19] Move tree_entry_interesting() to tree-walk.c ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 07/19] glossary: define pathspec, =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 08/19] pathspec: mark wildcard pathspecs from the b ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 09/19] tree-diff.c: reserve space in &quot;base&quot; for pat ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 10/19] tree_entry_interesting(): factor out most ma ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 11/19] tree_entry_interesting: support depth limit, =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 12/19] tree_entry_interesting(): support wildcard m ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 13/19] tree_entry_interesting(): optimize fnmatch w ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 14/19] Convert ce_path_match() use to match_pathspec(), =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 15/19] pathspec: add match_pathspec_depth(), =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 16/19] grep: convert to use struct pathspec, =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 17/19] grep: use match_pathspec_depth() for cache/w ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 18/19] grep: use preallocated buffer for grep_tree(), =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
[PATCH 19/19] grep: drop pathspec_matches() in favor of tr ..., =?UTF-8?q?Nguy=E1=BB ..., (Mon Dec 13, 2:46 am)
Re: [PATCH 01/19] Add struct pathspec, Thiago Farina, (Mon Dec 13, 10:31 am)
Re: [PATCH 15/19] pathspec: add match_pathspec_depth(), Junio C Hamano, (Mon Dec 13, 12:28 pm)
Re: [PATCH 04/19] Convert struct diff_options to use struc ..., Nguyen Thai Ngoc Duy, (Mon Dec 13, 10:02 pm)
Re: [PATCH 15/19] pathspec: add match_pathspec_depth(), Nguyen Thai Ngoc Duy, (Mon Dec 13, 10:07 pm)
Re: [PATCH 01/19] Add struct pathspec, Nguyen Thai Ngoc Duy, (Tue Dec 14, 5:50 am)
Re: [PATCH 09/19] tree-diff.c: reserve space in "base" for ..., Nguyen Thai Ngoc Duy, (Tue Dec 14, 6:01 am)
Re: [PATCH 11/19] tree_entry_interesting: support depth limit, Nguyen Thai Ngoc Duy, (Tue Dec 14, 7:44 am)
Re: [PATCH 12/19] tree_entry_interesting(): support wildca ..., Nguyen Thai Ngoc Duy, (Tue Dec 14, 8:04 am)
Re: [PATCH 14/19] Convert ce_path_match() use to match_pat ..., Nguyen Thai Ngoc Duy, (Tue Dec 14, 8:14 am)