diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-11-05 09:41:22 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-08 12:06:53 -0500 |
commit | 6eac50d8274ef0acbbaec4f79e2876405ba8dcee (patch) | |
tree | bbcebc4a9a9a71e8e7058d79b144e3e0389e92ca /prompt.h | |
parent | f07e5551a845b45076bf5c45118e16efa69610c4 (diff) | |
download | git-6eac50d8274ef0acbbaec4f79e2876405ba8dcee.tar.gz |
link_alt_odb_entries(): use string_list_split_in_place()
Change link_alt_odb_entry() to take a NUL-terminated string instead of
(char *, len). Use string_list_split_in_place() rather than inline
code in link_alt_odb_entries().
This approach saves some code and also avoids the (probably harmless)
error of passing a non-NUL-terminated string to is_absolute_path().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'prompt.h')
0 files changed, 0 insertions, 0 deletions