Files
git/Documentation
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-09-07 11:18:18 -07:00
2011-09-07 16:29:18 -07:00
2011-08-08 09:30:12 -07:00
2011-07-06 16:48:59 -07:00
2011-07-01 11:22:09 -07:00
2011-08-30 12:35:51 -07:00
2011-09-06 11:42:12 -07:00
2011-05-19 10:55:54 -07:00
2011-03-11 10:59:16 -05:00
2011-09-06 11:42:12 -07:00
2010-07-05 13:39:02 -07:00
2011-08-17 17:35:38 -07:00
2011-07-22 13:58:46 -07:00
2010-07-20 16:59:17 -07:00