diff options
author | Martin von Zweigbergk <martinvonz@gmail.com> | 2013-01-15 05:47:35 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-15 17:38:07 (GMT) |
commit | 18648e89e78662e3a6a9a38adfca3e6001cfaf85 (patch) | |
tree | 051e198d09c150b950045dccb189434e353cd1df /git-pull.sh | |
parent | d94c5e2fa24dce13a3dc1ba178f381cb09bb0853 (diff) | |
download | git-18648e89e78662e3a6a9a38adfca3e6001cfaf85.zip git-18648e89e78662e3a6a9a38adfca3e6001cfaf85.tar.gz git-18648e89e78662e3a6a9a38adfca3e6001cfaf85.tar.bz2 |
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 'git-pull.sh')
0 files changed, 0 insertions, 0 deletions