1
0
mirror of https://github.com/git/git.git synced 2025-03-24 20:13:04 +00:00
Michael Haggerty e4ed6105ec git check-ref-format: add options --allow-onelevel and --refspec-pattern
Also add tests of the new options.  (Actually, one big reason to add
the new options is to make it easy to test check_ref_format(), though
the options should also be useful to other scripts.)

Interpret the result of check_ref_format() based on which types of
refnames are allowed.  However, because check_ref_format() can only
return a single value, one test case is still broken.  Specifically,
the case "git check-ref-format --onelevel '*'" incorrectly succeeds
because check_ref_format() returns CHECK_REF_FORMAT_ONELEVEL for this
refname even though the refname is also CHECK_REF_FORMAT_WILDCARD.
The type of check that leads to this failure is used elsewhere in
"real" code and could lead to bugs; it will be fixed over the next few
commits.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-10-05 13:45:29 -07:00
..
2011-03-09 23:52:57 -08:00
2011-06-20 14:27:36 -07:00
2011-08-04 15:57:18 -07:00
2011-08-28 21:20:28 -07:00
2010-10-21 17:16:10 -07:00
2011-08-28 21:19:16 -07:00
2011-08-28 21:22:58 -07:00
2011-06-08 17:21:08 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 11:43:27 -07:00
2011-08-28 21:19:16 -07:00
2010-11-24 15:55:19 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-08-28 21:19:16 -07:00
2011-03-09 23:52:56 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-09-06 11:42:12 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2011-08-25 16:00:07 -07:00
2011-05-31 12:19:11 -07:00
2011-05-19 10:55:54 -07:00
2011-03-09 23:52:56 -08:00
2011-05-31 12:19:11 -07:00
2011-03-22 10:16:54 -07:00
2011-08-25 14:42:11 -07:00
2010-11-15 10:04:43 -08:00
2011-03-22 10:16:54 -07:00