summaryrefslogtreecommitdiff
path: root/parse-options.c
diff options
context:
space:
mode:
authorLibravatar Thomas Gummerer <t.gummerer@gmail.com>2019-03-11 22:16:32 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-12 15:49:05 +0900
commit7db9302d7cc7affeb1d576a050407f40404bd20f (patch)
tree1848804b21839e5e2da33446bc8ae71b4d627f67 /parse-options.c
parentbuilt-in stash: handle :(glob) pathspecs again (diff)
downloadtgif-7db9302d7cc7affeb1d576a050407f40404bd20f.tar.xz
stash: pass pathspec as pointer
Passing the pathspec by value is potentially confusing, as the copy is only a shallow copy, so save the overhead of the copy, and pass the pathspec struct as a pointer. In addition use copy_pathspec to copy the pathspec into rev.prune_data, so the copy is a proper deep copy, and owned by the revision API, as that's what the API expects. Reported-by: Jeff King <peff@peff.net> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.c')
0 files changed, 0 insertions, 0 deletions