]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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
index 7fbfbf973c79494fe20a7d25cb3383da31574829,b385b97828fa3973494666a16f939578209fdef7..0031b5f51cd96525a265dab02494700e9d36fce8
@@@ -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