Ronnie Sahlberg
18f29fc61e
branch -d: simplify by using RESOLVE_REF_READING
...
When "git branch -d" reads the branch it is about to delete, it used
to avoid passing the RESOLVE_REF_READING ('treat missing ref as
error') flag because a symref pointing to a nonexistent ref would show
up as missing instead of as something that could be deleted. To check
if a ref is actually missing, we then check
- is it a symref?
- if not, did it resolve to null_sha1?
Now we pass RESOLVE_REF_NO_RECURSE and the correct information is
returned for a symref even when it points to a missing ref. Simplify
by relying on RESOLVE_REF_READING.
No functional change intended.
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-10-15 10:47:25 -07:00
..
2014-10-01 13:56:14 -07:00
2014-07-16 11:10:11 -07:00
2014-10-14 10:50:07 -07:00
2013-12-05 14:13:21 -08:00
2013-08-05 11:32:19 -07:00
2014-10-15 10:47:24 -07:00
2014-10-15 10:47:25 -07:00
2014-10-07 11:09:16 -07:00
2014-03-18 14:03:03 -07:00
2013-09-20 12:37:32 -07:00
2013-07-13 10:19:37 -07:00
2014-10-01 13:56:14 -07:00
2014-10-15 10:47:24 -07:00
2014-10-07 11:09:16 -07:00
2014-10-15 10:47:24 -07:00
2013-12-05 14:13:21 -08:00
2014-06-12 10:29:41 -07:00
2014-10-15 10:47:24 -07:00
2014-09-19 11:38:40 -07:00
2013-04-10 13:27:26 -07:00
2014-10-01 13:56:14 -07:00
2013-07-15 10:56:08 -07:00
2013-07-15 10:56:08 -07:00
2014-07-28 10:14:34 -07:00
2014-10-01 13:56:14 -07:00
2014-08-27 10:42:16 -07:00
2014-01-17 12:21:20 -08:00
2014-10-15 10:47:23 -07:00
2014-10-15 10:47:24 -07:00
2014-10-15 10:47:24 -07:00
2014-10-15 10:47:24 -07:00
2014-10-01 13:56:14 -07:00
2014-10-07 11:09:16 -07:00
2014-06-25 11:47:49 -07:00
2014-09-11 14:23:51 -07:00
2014-08-20 09:53:37 -07:00
2014-09-26 14:39:45 -07:00
2014-09-02 13:28:44 -07:00
2014-10-15 10:47:24 -07:00
2014-09-02 12:00:30 -07:00
2014-05-27 14:00:43 -07:00
2014-02-24 14:37:14 -08:00
2014-09-22 13:46:43 -07:00
2014-10-07 10:49:57 -07:00
2014-02-13 13:38:59 -08:00
2013-08-05 11:32:19 -07:00
2013-07-09 09:12:48 -07:00
2010-02-22 14:29:41 -08:00
2013-12-05 14:13:21 -08:00
2014-09-02 11:02:58 -07:00
2014-10-15 10:47:24 -07:00
2011-05-15 15:23:33 -07:00
2014-03-03 14:54:45 -08:00
2014-10-01 13:56:14 -07:00
2014-06-19 15:20:54 -07:00
2014-10-15 10:47:24 -07:00
2014-09-18 09:13:42 -07:00
2013-05-01 15:33:11 -07:00
2014-06-10 13:09:24 -07:00
2014-09-15 11:37:43 -07:00
2014-03-14 14:27:06 -07:00
2014-09-15 13:23:20 -07:00
2014-10-01 13:56:14 -07:00
2014-10-15 10:47:24 -07:00
2014-10-01 13:56:14 -07:00
2014-10-07 11:09:16 -07:00
2014-10-15 10:47:24 -07:00
2014-09-26 14:39:44 -07:00
2014-10-15 10:47:22 -07:00
2014-04-30 10:30:02 -07:00
2014-10-01 13:56:14 -07:00
2014-06-13 12:09:38 -07:00
2014-09-19 10:46:15 -07:00
2014-03-24 10:43:34 -07:00
2014-10-01 13:56:14 -07:00
2014-10-08 13:05:25 -07:00
2013-12-05 14:13:21 -08:00
2014-10-15 10:47:24 -07:00
2013-12-05 14:13:21 -08:00
2013-09-06 13:33:17 -07:00
2014-10-15 10:47:24 -07:00
2014-10-15 10:47:22 -07:00
2014-09-10 13:54:21 -07:00
2014-10-01 13:56:14 -07:00
2014-10-15 10:47:22 -07:00
2013-12-05 14:13:21 -08:00
2014-06-23 15:50:31 -07:00
2014-08-20 09:53:37 -07:00
2013-02-14 09:30:04 -08:00