summaryrefslogtreecommitdiff
path: root/test-delta.c
diff options
context:
space:
mode:
authorMartin von Zweigbergk <martinvonz@gmail.com>2013-01-14 21:47:35 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-15 09:38:07 -0800
commit18648e89e78662e3a6a9a38adfca3e6001cfaf85 (patch)
tree051e198d09c150b950045dccb189434e353cd1df /test-delta.c
parentd94c5e2fa24dce13a3dc1ba178f381cb09bb0853 (diff)
downloadgit-18648e89e78662e3a6a9a38adfca3e6001cfaf85.tar.gz
reset.c: pass pathspec around instead of (prefix, argv) pair
We use the path arguments in two places in reset.c: in interactive_reset() and read_from_tree(). Both of these call get_pathspec(), so we pass the (prefix, argv) pair to both functions. Move the call to get_pathspec() out of these methods, for two reasons: 1) One argument is simpler than two. 2) It lets us use the (arguably clearer) "if (pathspec)" in place of "if (i < argc)". Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-delta.c')
0 files changed, 0 insertions, 0 deletions