diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-07-14 15:35:27 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 10:56:06 -0700 |
commit | e4d92cdcd9450af7ae4c40de2b7c5c27a1faa138 (patch) | |
tree | 109ff87d743706a097a180954113e2036c79af03 /dir.h | |
parent | f01d9820e768e7eb9eab4ad9a55a62317e0b23ad (diff) | |
download | git-e4d92cdcd9450af7ae4c40de2b7c5c27a1faa138.tar.gz |
pathspec: add copy_pathspec
Because free_pathspec wants to free "items" pointer in the pathspec
structure, a simple structure assignment is not enough if you want to
copy an existing pathspec into another. Freeing the original will
damage the copy unless a deep copy is made.
Note that the strings in pathspec->items->match and the array
pathspec->raw[] are still shared between the original and the copy.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
0 files changed, 0 insertions, 0 deletions