Jeff King 2eda0102be 
	
	
	check return value of verify_ref_format() ... 
			Users of the ref-filter code must call verify_ref_format()
before formatting any refs, but most ignore its return
value. This means we may print an error on a syntactically
bogus pattern, but keep going anyway.
In most cases this results in a fatal error when we actually
try to format a ref. But if you have no refs to show at all,
then the behavior is confusing: git prints the error from
verify_ref_format(), then exits with code 0 without showing
any output.  Let's instead abort immediately if we know we
have a bogus format.
We'll output the usage information if we have it handy (just
like the existing call in cmd_for_each_ref() does), and
otherwise just die().
Signed-off-by: Jeff King <peff@peff.net >
Signed-off-by: Junio C Hamano <gitster@pobox.com > 
		
	 
		2017-07-13 12:42:50 -07:00 
	 
	
	
		 
	
	
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-13 12:42:50 -07:00 
		 
	
		
			
			
			
			
			
			2017-03-21 11:18:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-05 13:32:57 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-10 13:42:51 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-05-30 14:45:03 +09:00 
		 
	
		
			
			
			
			
			
			2017-07-10 13:42:51 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 15:29:31 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-03-31 08:33:56 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-05 13:32:57 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-05 13:32:56 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-12 15:18:23 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2017-07-12 15:18:23 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-05 13:32:57 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2017-07-12 15:18:23 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-23 18:27:07 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-03-21 11:18:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-05-08 12:18:19 +09:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-03-26 22:08:21 -07:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-05-08 15:12:57 +09:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2017-05-08 12:18:19 +09:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-10 13:42:51 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-05-08 12:18:19 +09:00 
		 
	
		
			
			
			
			
			
			2017-04-14 03:53:25 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 11:09:52 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-05 13:32:56 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-12 15:18:23 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-10 13:42:51 -07:00 
		 
	
		
			
			
			
			
			
			2017-05-30 14:45:04 +09:00 
		 
	
		
			
			
			
			
			
			2017-05-30 14:45:04 +09:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-10 13:42:51 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-10 13:42:51 -07:00 
		 
	
		
			
			
			
			
			
			2017-01-23 18:51:56 -08:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-06 18:14:44 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-13 12:42:50 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-05-30 14:45:04 +09:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00 
		 
	
		
			
			
			
			
			
			2017-07-13 12:42:50 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-24 14:28:41 -07:00 
		 
	
		
			
			
			
			
			
			2017-06-15 12:56:22 -07:00