1. 28 Jun, 2016 2 commits
  2. 08 Jun, 2016 1 commit
  3. 21 May, 2014 1 commit
  4. 17 May, 2013 1 commit
  5. 12 Apr, 2013 1 commit
  6. 01 Feb, 2013 2 commits
  7. 15 Aug, 2012 1 commit
    • Junio C Hamano's avatar
      daemon: --access-hook option · 93741e4a
      Junio C Hamano authored
      The --access-hook option to "git daemon" specifies an external
      command to be run every time a client connects, with
      
       - service name (e.g. "upload-pack", etc.),
       - path to the repository,
       - hostname (%H),
       - canonical hostname (%CH),
       - ip address (%IP),
       - tcp port (%P)
      
      as its command line arguments.  The external command can decide to
      decline the service by exiting with a non-zero status (or to allow it
      by exiting with a zero status).  It can also look at the $REMOTE_ADDR
      and $REMOTE_PORT environment variables to learn about the requestor
      when making this decision.
      
      The external command can optionally write a single line to its
      standard output to be sent to the requestor as an error message when
      it declines the service.
      Acked-by: default avatarShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      93741e4a
  8. 16 Jul, 2012 1 commit
  9. 16 Oct, 2011 1 commit
    • Jeff King's avatar
      daemon: give friendlier error messages to clients · d5570f4d
      Jeff King authored
      When the git-daemon is asked about an inaccessible repository, it simply
      hangs up the connection without saying anything further. This makes it
      hard to distinguish between a repository we cannot access (e.g., due to
      typo), and a service or network outage.
      
      Instead, let's print an "ERR" line, which git clients understand since
      v1.6.1 (2008-12-24).
      
      Because there is a risk of leaking information about non-exported
      repositories, by default all errors simply say "access denied or
      repository not exported". Sites which don't have hidden repositories, or
      don't care, can pass a flag to turn on more specific messages.
      Signed-off-by: default avatarJeff King <peff@peff.net>
      Helped-by: default avatarSitaram Chamarty <sitaramc@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      d5570f4d
  10. 28 Aug, 2011 1 commit
  11. 11 Mar, 2011 1 commit
    • Jeff King's avatar
      doc: drop author/documentation sections from most pages · 48bb914e
      Jeff King authored
      The point of these sections is generally to:
      
        1. Give credit where it is due.
      
        2. Give the reader an idea of where to ask questions or
           file bug reports.
      
      But they don't do a good job of either case. For (1), they
      are out of date and incomplete. A much more accurate answer
      can be gotten through shortlog or blame.  For (2), the
      correct contact point is generally git@vger, and even if you
      wanted to cc the contact point, the out-of-date and
      incomplete fields mean you're likely sending to somebody
      useless.
      
      So let's drop the fields entirely from all manpages except
      git(1) itself. We already point people to the mailing list
      for bug reports there, and we can update the Authors section
      to give credit to the major contributors and point to
      shortlog and blame for more information.
      
      Each page has a "This is part of git" footer, so people can
      follow that to the main git manpage.
      48bb914e
  12. 04 Nov, 2010 1 commit
  13. 08 Oct, 2010 1 commit
  14. 28 Sep, 2010 1 commit
  15. 10 Jan, 2010 1 commit
    • Thomas Rast's avatar
      Documentation: spell 'git cmd' without dash throughout · 0b444cdb
      Thomas Rast authored
      The documentation was quite inconsistent when spelling 'git cmd' if it
      only refers to the program, not to some specific invocation syntax:
      both 'git-cmd' and 'git cmd' spellings exist.
      
      The current trend goes towards dashless forms, and there is precedent
      in 647ac702 (git-svn.txt: stop using dash-form of commands.,
      2009-07-07) to actively eliminate the dashed variants.
      
      Replace 'git-cmd' with 'git cmd' throughout, except where git-shell,
      git-cvsserver, git-upload-pack, git-receive-pack, and
      git-upload-archive are concerned, because those really live in the
      $PATH.
      0b444cdb
  16. 18 Apr, 2009 2 commits
  17. 17 Dec, 2008 1 commit
  18. 24 Oct, 2008 1 commit
    • Joey Hess's avatar
      git-daemon: set REMOTE_ADDR to client address · 53ffb878
      Joey Hess authored
      This allows hooks like pre-receive to look at the client's IP
      address.
      
      Of course the IP address can't be used to get strong security;
      git-daemon isn't the right thing to use if you need that. However,
      basic IP address checking can be good enough in some situations.
      
      REMOTE_ADDR is the same environment variable used to communicate the
      client's address to CGI scripts.
      Signed-off-by: default avatarJoey Hess <joey@kitenet.net>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      53ffb878
  19. 18 Aug, 2008 1 commit
  20. 05 Jul, 2008 1 commit
  21. 02 Jul, 2008 3 commits
  22. 08 Jun, 2008 1 commit
    • Stephan Beyer's avatar
      Docs: Use "-l::\n--long\n" format in OPTIONS sections · 3240240f
      Stephan Beyer authored
      The OPTIONS section of a documentation file contains a list
      of the options a git command accepts.
      
      Currently there are several variants to describe the case that
      different options (almost) do the same in the OPTIONS section.
      
      Some are:
      
       -f, --foo::
       -f|--foo::
       -f | --foo::
      
      But AsciiDoc has the special form:
      
       -f::
       --foo::
      
      This patch applies this form to the documentation of the whole git suite,
      and removes useless em-dash prevention, so \--foo becomes --foo.
      Signed-off-by: default avatarStephan Beyer <s-beyer@gmx.net>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      3240240f
  23. 06 Jun, 2008 1 commit
  24. 20 May, 2008 1 commit
  25. 07 Jan, 2008 1 commit
    • Dan McGee's avatar
      Documentation: rename gitlink macro to linkgit · 5162e697
      Dan McGee authored
      Between AsciiDoc 8.2.2 and 8.2.3, the following change was made to the stock
      Asciidoc configuration:
      
      @@ -149,7 +153,10 @@
       # Inline macros.
       # Backslash prefix required for escape processing.
       # (?s) re flag for line spanning.
      -(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
      +
      +# Explicit so they can be nested.
      +(?su)[\\]?(?P<name>(http|https|ftp|file|mailto|callto|image|link)):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
      +
       # Anchor: [[[id]]]. Bibliographic anchor.
       (?su)[\\]?\[\[\[(?P<attrlist>[\w][\w-]*?)\]\]\]=anchor3
       # Anchor: [[id,xreflabel]]
      
      This default regex now matches explicit values, and unfortunately in this
      case gitlink was being matched by just 'link', causing the wrong inline
      macro template to be applied. By renaming the macro, we can avoid being
      matched by the wrong regex.
      Signed-off-by: Dan McGee's avatarDan McGee <dpmcgee@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      5162e697
  26. 18 Dec, 2007 1 commit
  27. 01 Sep, 2007 1 commit
  28. 29 Aug, 2007 1 commit
    • Junio C Hamano's avatar
      git-daemon(1): assorted improvements. · bdd73795
      Junio C Hamano authored
      Jari Aalto noticed a handful places in git-daemon documentation
      that need to be improved.
      
       * --inetd makes --pid-file to be ignored, in addition to --user
         and --group
      
       * receive-pack service was not described at all.  We should, if
         only to warn about the security implications of it.
      
       * There was no example of per repository configuration.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      bdd73795
  29. 01 Aug, 2007 1 commit
  30. 07 Jun, 2007 1 commit
    • Junio C Hamano's avatar
      War on whitespace · a6080a0a
      Junio C Hamano authored
      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: default avatarJunio C Hamano <gitster@pobox.com>
      a6080a0a
  31. 24 Jan, 2007 1 commit
  32. 27 Oct, 2006 2 commits
  33. 26 Oct, 2006 1 commit
  34. 28 Sep, 2006 1 commit
    • Jon Loeliger's avatar
      Cleaned up git-daemon virtual hosting support. · dd467629
      Jon Loeliger authored
      Standardized on lowercase hostnames from client.
      
      Added interpolation values for the IP address, port and
      canonical hostname of the server as it is contacted and
      named by the client and passed in via the extended args.
      
      Added --listen=host_or_ipaddr option suport.  Renamed port
      variable as "listen_port" correspondingly as well.
      
      Documented mutual exclusivity of --inetd option with
          --user, --group, --listen and --port options.
      
      Added compat/inet_pton.c from Paul Vixie as needed.
      
      Small memory leaks need to be cleaned up still.
      Signed-off-by: default avatarJon Loeliger <jdl@jdl.com>
      Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
      dd467629