John Keeping
2c63d6eb46
reset: handle submodule with trailing slash
...
When using tab-completion, a directory path will often end with a
trailing slash which currently confuses "git reset" when dealing with
submodules. Now that we have parse_pathspec we can easily handle this
by simply adding the PATHSPEC_STRIP_SUBMODULE_SLASH_CHEAP flag.
To do this, we need to move the read_cache() call before the
parse_pathspec() call. All of the existing paths through cmd_reset()
that do not die early already call read_cache() at some point, so there
is no performance impact to doing this in the common case.
Signed-off-by: John Keeping <john@keeping.me.uk >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2013-09-13 12:37:35 -07:00
..
2013-09-09 14:50:44 -07:00
2013-08-05 11:32:19 -07:00
2013-02-20 13:42:22 -08:00
2013-08-05 11:32:19 -07:00
2013-09-09 14:36:15 -07:00
2013-08-07 08:30:30 -07:00
2013-08-05 09:30:48 -07:00
2013-09-04 12:39:03 -07:00
2013-09-09 14:36:15 -07:00
2013-07-13 10:19:37 -07:00
2013-08-07 08:37:02 -07:00
2013-09-09 14:50:44 -07:00
2013-09-09 14:36:15 -07:00
2013-08-05 11:32:19 -07:00
2013-03-25 15:01:22 -07:00
2013-09-09 14:36:15 -07:00
2013-09-09 14:50:36 -07:00
2013-04-10 13:27:26 -07:00
2013-08-05 11:32:19 -07:00
2013-07-15 10:56:08 -07:00
2013-07-15 10:56:08 -07:00
2013-07-15 10:56:09 -07:00
2013-09-04 12:39:03 -07:00
2013-09-09 14:30:29 -07:00
2013-09-09 14:50:37 -07:00
2013-04-26 11:10:47 -07:00
2013-07-30 08:06:27 -07:00
2013-08-05 11:32:19 -07:00
2013-09-04 12:39:03 -07:00
2013-09-09 14:36:15 -07:00
2013-08-07 08:30:55 -07:00
2013-07-21 22:51:29 -07:00
2013-05-28 08:07:20 -07:00
2013-09-09 14:36:15 -07:00
2013-09-09 14:36:15 -07:00
2013-09-09 14:36:15 -07:00
2012-12-07 14:10:56 -08:00
2013-03-02 22:52:44 -08:00
2013-08-05 11:32:19 -07:00
2013-08-05 11:32:19 -07:00
2013-07-09 09:12:48 -07:00
2013-05-06 22:17:00 -07:00
2013-08-05 11:32:19 -07:00
2013-09-09 14:36:15 -07:00
2013-08-07 08:30:30 -07:00
2013-08-05 11:32:19 -07:00
2013-08-02 09:27:26 -07:00
2012-12-13 11:13:44 -08:00
2013-05-01 15:33:11 -07:00
2013-05-28 09:20:54 -07:00
2013-06-06 12:17:52 -07:00
2013-09-09 14:30:29 -07:00
2013-06-02 15:31:14 -07:00
2013-07-08 14:34:24 -07:00
2013-05-29 14:23:04 -07:00
2013-08-05 11:32:19 -07:00
2013-08-05 11:32:19 -07:00
2013-07-15 10:56:07 -07:00
2013-09-13 12:37:35 -07:00
2013-06-26 11:40:31 -07:00
2013-09-04 12:39:03 -07:00
2013-08-07 08:37:12 -07:00
2013-09-13 12:37:35 -07:00
2013-08-02 16:07:45 -07:00
2013-08-05 11:32:19 -07:00
2013-08-05 11:32:19 -07:00
2013-08-05 11:32:19 -07:00
2013-01-16 12:48:22 -08:00
2012-10-21 12:17:38 -07:00
2013-08-05 11:32:19 -07:00
2013-07-30 08:10:35 -07:00
2013-09-09 14:36:15 -07:00
2013-08-05 11:32:19 -07:00
2013-02-20 13:42:22 -08:00
2013-02-14 09:30:04 -08:00