OSDN Git Service

Merge branch 'xx/db-refspec-vs-js-remote'
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2009 21:30:00 +0000 (14:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2009 21:30:00 +0000 (14:30 -0700)
* xx/db-refspec-vs-js-remote:
  Support '*' in the middle of a refspec
  Keep '*' in pattern refspecs
  Use the matching function to generate the match results
  Use a single function to match names against patterns
  Make clone parse the default refspec with the normal code

1  2 
builtin-clone.c
builtin-remote.c
remote.c

diff --cc builtin-clone.c
@@@ -328,9 -341,9 +328,10 @@@ int cmd_clone(int argc, const char **ar
        struct strbuf branch_top = STRBUF_INIT, reflog_msg = STRBUF_INIT;
        struct transport *transport = NULL;
        char *src_ref_prefix = "refs/heads/";
 +      int err = 0;
  
-       struct refspec refspec;
+       struct refspec *refspec;
+       const char *fetch_pattern;
  
        junk_pid = getpid();
  
Simple merge
diff --cc remote.c
Simple merge