Martin von Zweigbergk
18648e89e7
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>
2013-01-15 09:38:07 -08:00
..
2012-09-14 11:53:53 -07:00
2013-01-06 22:10:23 -08:00
2012-08-22 12:02:28 -07:00
2012-08-20 12:23:15 -07:00
2012-10-17 22:42:40 -07:00
2013-01-09 08:27:09 -08:00
2012-09-10 15:31:06 -07:00
2012-09-17 15:59:34 -07:00
2012-08-22 12:02:28 -07:00
2012-11-15 17:36:26 -08:00
2012-08-20 12:23:16 -07:00
2012-10-08 11:34:02 -07:00
2012-08-20 12:23:16 -07:00
2012-07-23 20:55:54 -07:00
2012-11-15 17:47:24 -08:00
2012-11-25 18:35:46 -08:00
2012-08-20 12:23:16 -07:00
2012-10-25 06:42:27 -04:00
2012-11-02 11:38:29 -04:00
2012-11-20 10:32:10 -08:00
2012-12-03 09:57:16 -08:00
2012-10-29 03:40:29 -04:00
2012-09-24 12:39:21 -07:00
2012-08-20 12:23:17 -07:00
2012-09-07 11:09:09 -07:00
2012-08-20 12:23:17 -07:00
2012-09-27 17:57:26 -07:00
2012-11-18 19:32:30 -08:00
2012-08-20 12:23:17 -07:00
2012-08-20 12:23:17 -07:00
2012-08-31 13:05:05 -07:00
2012-08-20 12:23:17 -07:00
2013-01-09 08:27:09 -08:00
2012-11-19 13:08:28 -08:00
2012-09-07 10:58:35 -07:00
2012-11-19 13:08:28 -08:00
2012-12-07 14:10:56 -08:00
2012-09-11 11:36:05 -07:00
2012-08-20 12:23:18 -07:00
2013-01-09 08:26:33 -08:00
2012-08-20 12:23:18 -07:00
2012-08-20 12:23:18 -07:00
2012-08-20 12:23:18 -07:00
2012-09-15 22:58:20 -07:00
2012-10-25 06:42:27 -04:00
2012-12-13 11:13:44 -08:00
2012-08-20 12:23:19 -07:00
2012-08-20 12:23:19 -07:00
2012-09-14 11:53:53 -07:00
2012-12-03 08:04:09 -08:00
2012-08-20 12:23:19 -07:00
2012-10-01 12:58:34 -07:00
2012-11-26 13:27:45 -08:00
2012-11-13 08:34:14 -05:00
2012-08-20 12:23:19 -07:00
2013-01-15 09:38:07 -08:00
2012-10-29 03:08:30 -04:00
2012-09-12 14:08:05 -07:00
2012-09-10 15:42:55 -07:00
2012-11-29 12:52:30 -08:00
2012-12-02 01:44:34 -08:00
2013-01-02 10:40:34 -08:00
2012-08-22 10:58:28 -07:00
2012-10-25 06:42:27 -04:00
2012-10-21 12:17:38 -07:00
2012-08-22 12:02:28 -07:00
2012-11-20 10:32:10 -08:00
2012-08-22 12:02:28 -07:00
2012-08-22 10:58:29 -07:00
2012-08-22 10:58:29 -07:00
2012-08-22 10:58:29 -07:00
2012-08-22 10:58:29 -07:00