1. 15 5月, 2008 1 次提交
  2. 28 2月, 2008 2 次提交
  3. 09 11月, 2007 1 次提交
  4. 06 11月, 2007 1 次提交
  5. 19 10月, 2007 1 次提交
  6. 01 8月, 2007 1 次提交
  7. 08 6月, 2007 1 次提交
  8. 07 6月, 2007 1 次提交
    • J
      War on whitespace · a6080a0a
      Junio C Hamano 提交于
      This uses "git-apply --whitespace=strip" to fix whitespace errors that have
      crept in to our source files over time.  There are a few files that need
      to have trailing whitespaces (most notably, test vectors).  The results
      still passes the test, and build result in Documentation/ area is unchanged.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a6080a0a
  9. 22 5月, 2007 1 次提交
  10. 21 2月, 2007 2 次提交
    • J
      prefixcmp(): fix-up mechanical conversion. · 599065a3
      Junio C Hamano 提交于
      Previous step converted use of strncmp() with literal string
      mechanically even when the result is only used as a boolean:
      
          if (!strncmp("foo", arg, 3)) ==> if (!(-prefixcmp(arg, "foo")))
      
      This step manually cleans them up to read:
      
          if (!prefixcmp(arg, "foo"))
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      599065a3
    • J
      Mechanical conversion to use prefixcmp() · cc44c765
      Junio C Hamano 提交于
      This mechanically converts strncmp() to use prefixcmp(), but only when
      the parameters match specific patterns, so that they can be verified
      easily.  Leftover from this will be fixed in a separate step, including
      idiotic conversions like
      
          if (!strncmp("foo", arg, 3))
      
        =>
      
          if (!(-prefixcmp(arg, "foo")))
      
      This was done by using this script in px.perl
      
         #!/usr/bin/perl -i.bak -p
         if (/strncmp\(([^,]+), "([^\\"]*)", (\d+)\)/ && (length($2) == $3)) {
                 s|strncmp\(([^,]+), "([^\\"]*)", (\d+)\)|prefixcmp($1, "$2")|;
         }
         if (/strncmp\("([^\\"]*)", ([^,]+), (\d+)\)/ && (length($1) == $3)) {
                 s|strncmp\("([^\\"]*)", ([^,]+), (\d+)\)|(-prefixcmp($2, "$1"))|;
         }
      
      and running:
      
         $ git grep -l strncmp -- '*.c' | xargs perl px.perl
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cc44c765
  11. 15 2月, 2007 1 次提交
  12. 04 2月, 2007 1 次提交
  13. 29 1月, 2007 1 次提交
    • L
      git-push through git protocol · 4b3b1e1e
      Linus Torvalds 提交于
      This allows pushing over the git:// protocol, and while it's not
      authenticated, it could make sense from within a firewalled
      setup where nobody but trusted internal people can reach the git
      port.  git-daemon is possibly easier and faster to set up in the
      kind of situation where you set up git instead of CVS inside a
      company.
      
      "git-receive-pack" is disabled by default, so you need to enable it
      explicitly by starting git-daemon with the "--enable=receive-pack"
      command line argument, or by having your config enable it automatically.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4b3b1e1e
  14. 09 1月, 2007 1 次提交
  15. 21 12月, 2006 1 次提交
    • J
      simplify inclusion of system header files. · 85023577
      Junio C Hamano 提交于
      This is a mechanical clean-up of the way *.c files include
      system header files.
      
       (1) sources under compat/, platform sha-1 implementations, and
           xdelta code are exempt from the following rules;
      
       (2) the first #include must be "git-compat-util.h" or one of
           our own header file that includes it first (e.g. config.h,
           builtin.h, pkt-line.h);
      
       (3) system headers that are included in "git-compat-util.h"
           need not be included in individual C source files.
      
       (4) "git-compat-util.h" does not have to include subsystem
           specific header files (e.g. expat.h).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      85023577
  16. 24 10月, 2006 1 次提交
  17. 29 9月, 2006 2 次提交
  18. 28 9月, 2006 2 次提交
  19. 21 9月, 2006 1 次提交
  20. 10 9月, 2006 1 次提交
    • F
      Add git-upload-archive · 39345a21
      Franck Bui-Huu 提交于
      This command implements the git archive protocol on the server
      side. This command is not intended to be used by the end user.
      Underlying git-archive command line options are sent over the
      protocol from "git-archive --remote=...", just like upload-tar
      currently does with "git-tar-tree=...".
      
      As for "git-archive" command implementation, this new command
      does not execute any existing "git-{tar,zip}-tree" but rely
      on the archive API defined by "git-archive" patch. Hence we
      get 2 good points:
      
       - "git-archive" and "git-upload-archive" share all option
         parsing code.
      
       - All kind of git-upload-{tar,zip} can be deprecated.
      Signed-off-by: NFranck Bui-Huu <vagabon.xyz@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      39345a21
  21. 07 9月, 2006 1 次提交
  22. 28 8月, 2006 2 次提交
    • J
      daemon: add upload-tar service. · 74c0cc21
      Junio C Hamano 提交于
      This allows clients to ask for tarballs with:
      
      	git tar-tree --remote=git://server/repo refname
      
      By default, the upload-tar service is not enabled.  To enable
      it server-wide, the server can be started with:
      
      	git-daemon --enable=upload-tar
      
      This service is by default overridable per repostiory, so
      alternatively, a repository can define "daemon.uploadtar = true"
      to enable it.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      74c0cc21
    • J
      daemon: prepare for multiple services. · d819e4e6
      Junio C Hamano 提交于
      This adds an infrastructure to selectively enable and disable
      more than one services in git-daemon.  Currently upload-pack
      service, which serves the git-fetch-pack and git-peek-remote
      clients, is the only service that is defined.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d819e4e6
  23. 27 8月, 2006 1 次提交
  24. 23 8月, 2006 1 次提交
  25. 16 8月, 2006 1 次提交
  26. 28 7月, 2006 1 次提交
  27. 14 7月, 2006 4 次提交
  28. 28 6月, 2006 1 次提交
  29. 22 6月, 2006 1 次提交
  30. 21 6月, 2006 1 次提交
  31. 20 6月, 2006 1 次提交
    • J
      Restore SIGCHLD to SIG_DFL where we care about waitpid(). · f0b7367c
      Junio C Hamano 提交于
      It was reported that under one implementation of socks client
      "git clone" fails with "error: waitpid failed (No child processes)",
      because "git" is spawned after setting SIGCHLD to SIG_IGN.
      
      Arguably it may be a broken setting, but we should protect
      ourselves so that we can get reliable results from waitpid() for
      the children we care about.
      
      This patch resets SIGCHLD to SIG_DFL in three places:
      
       - connect.c::git_connect() - initiators of git native
         protocol transfer are covered with this.
      
       - daemon.c::main() - obviously.
      
       - merge-index.c::main() - obviously.
      
      There are other programs that do fork() but do not waitpid():
      http-push, imap-send.  upload-pack does not either, but in the
      case of that program, each of the forked halves runs exec()
      another program, so this change would not have much effect
      there.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      f0b7367c
  32. 07 6月, 2006 1 次提交