git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Extend pattern refspecs
@ 2009-03-06  4:56 Daniel Barkalow
  2009-03-06  5:19 ` Jay Soffian
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Barkalow @ 2009-03-06  4:56 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

This series only supports the narrowest case of having the * in the middle 
of a side of a refspec: having it as a full path component on each side.

Patches 1-3 centralize all of the parsing and matching rules to a pair of 
functions; patch 4 makes the stored representation more convenient (and 
serves as a distinguished bisection outcome for anything I missed that was 
relying on the contents of struct refspec for patterns); and patch 5 
extends the matching implementation and loosens the ref format 
requirements to allow the * to be in the middle.

An easy followup would relax the restrictions further without requiring 
any particularly tricky further changes.

Daniel Barkalow (5):
  Make clone parse the default fetch refspec with the regular code
  Use a single function to match names against patterns
  Use the matching function to generate the match results
  Keep '*' in pattern refspecs
  Support '*' in the middle of a refspec

 builtin-clone.c    |   25 ++++++++--------
 refs.c             |   15 +++++----
 remote.c           |   78 +++++++++++++++++++++++++++++----------------------
 t/t5511-refspec.sh |   12 ++++++++
 4 files changed, 77 insertions(+), 53 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-09 15:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06  4:56 [PATCH 0/5] Extend pattern refspecs Daniel Barkalow
2009-03-06  5:19 ` Jay Soffian
2009-03-06  6:07   ` Daniel Barkalow
2009-03-06  6:52     ` Jay Soffian
2009-03-06  7:03       ` Daniel Barkalow
2009-03-06  7:59         ` Jay Soffian
2009-03-08  8:31   ` Junio C Hamano
2009-03-08  8:49     ` Daniel Barkalow
2009-03-09 15:46       ` Jay Soffian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).