1. 11 3月, 2011 1 次提交
    • J
      doc: drop author/documentation sections from most pages · 48bb914e
      Jeff King 提交于
      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
  2. 06 11月, 2010 1 次提交
  3. 04 11月, 2010 1 次提交
  4. 07 10月, 2010 1 次提交
  5. 22 3月, 2010 1 次提交
  6. 25 2月, 2010 1 次提交
  7. 18 2月, 2010 2 次提交
    • J
      docs: don't talk about $GIT_DIR/refs/ everywhere · cc1b8d8b
      Jeff King 提交于
      It is misleading to say that we pull refs from $GIT_DIR/refs/*, because we
      may also consult the packed refs mechanism. These days we tend to treat
      the "refs hierarchy" as more of an abstract namespace that happens to be
      represented as $GIT_DIR/refs. At best, this is a minor inaccuracy, but at
      worst it can confuse users who then look in $GIT_DIR/refs and find that it
      is missing some of the refs they expected to see.
      
      This patch drops most uses of "$GIT_DIR/refs/*", changing them into just
      "refs/*", under the assumption that users can handle the concept of an
      abstract refs namespace. There are a few things to note:
      
        - most cases just dropped the $GIT_DIR/ portion. But for cases where
          that left _just_ the word "refs", I changed it to "refs/" to help
          indicate that it was a hierarchy.  I didn't do the same for longer
          paths (e.g., "refs/heads" remained, instead of becoming
          "refs/heads/").
      
        - in some cases, no change was made, as the text was explicitly about
          unpacked refs (e.g., the discussion in git-pack-refs).
      
        - In some cases it made sense instead to note the existence of packed
          refs (e.g., in check-ref-format and rev-parse).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cc1b8d8b
    • S
      Add a "TEMPLATE DIRECTORY" section to git-init[1]. · d8a8488d
      Steven Drake 提交于
      Create a more inoformative section to describe template directory and
      refer to it in config.txt and with the '--template' option of git-init
      and git-clone commands.
      Signed-off-by: NSteven Drake <sdrake@xnet.co.nz>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d8a8488d
  8. 29 12月, 2009 3 次提交
  9. 01 12月, 2009 1 次提交
  10. 22 10月, 2009 1 次提交
  11. 10 10月, 2009 1 次提交
    • J
      Documentation: clone: clarify discussion of initial branch · 33405be3
      Jonathan Nieder 提交于
      When saying the initial branch is equal to the currently active
      remote branch, it is probably intended that the branch heads
      point to the same commit.  Maybe it would be more useful to a
      new user to emphasize that the tree contents and history are the
      same.
      
      More important, probably, is that this new branch is set up so
      that "git pull" merges changes from the corresponding remote
      branch.  The next paragraph addresses that directly.  What the
      reader needs to know to begin with is that (1) the initial branch
      is your own; if you do not pull, it won't get updated, and that
      (2) the initial branch starts out at the same commit as the
      upstream.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      33405be3
  12. 14 9月, 2009 1 次提交
  13. 04 9月, 2009 1 次提交
  14. 27 8月, 2009 1 次提交
  15. 21 8月, 2009 1 次提交
    • J
      git clone: Add --recursive to automatically checkout (nested) submodules · e7fed18a
      Johan Herland 提交于
      Many projects using submodules expect all submodules to be checked out
      in order to build/work correctly. A common command sequence for
      developers on such projects is:
      
      	git clone url/to/project
      	cd project
      	git submodule update --init (--recursive)
      
      This patch introduces the --recursive option to git-clone. The new
      option causes git-clone to recursively clone and checkout all
      submodules of the cloned project. Hence, the above command sequence
      can be reduced to:
      
      	git clone --recursive url/to/project
      
      --recursive is ignored if no checkout is done by the git-clone.
      
      The patch also includes documentation and a selftest.
      Signed-off-by: NJohan Herland <johan@herland.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e7fed18a
  16. 17 8月, 2009 1 次提交
    • J
      docs: describe impact of repack on "clone -s" · 13354f53
      Jeff King 提交于
      The effects of repacking on a repository with alternates are a bit
      subtle. The two main things users will want are:
      
        1. Not to waste disk space by accidentally copying objects which could
           be shared.
      
        2. Copying all objects explicitly to break the dependency on the source
           repo.
      
      This patch describes both under the "clone -s" documentation. It makes
      sense to put it there rather than in git-repack.txt for both cases.
      
      For (1), we are warning the user who is using "clone -s" about what _not_
      to do, so we need to get their attention when reading about "clone -s".
      
      For (2), we are telling them how git-repack can be used to accomplish a
      task, but until they know that git-repack is the right tool, they have no
      reason to look at the repack documentation.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      13354f53
  17. 09 5月, 2009 1 次提交
  18. 02 4月, 2009 1 次提交
  19. 10 10月, 2008 1 次提交
  20. 03 8月, 2008 1 次提交
  21. 26 7月, 2008 1 次提交
  22. 06 7月, 2008 1 次提交
  23. 02 7月, 2008 2 次提交
    • J
      Documentation formatting and cleanup · 483bc4f0
      Jonathan Nieder 提交于
      Following what appears to be the predominant style, format
      names of commands and commandlines both as `teletype text`.
      
      While we're at it, add articles ("a" and "the") in some
      places, italicize the name of the command in the manual page
      synopsis line, and add a comma or two where it seems appropriate.
      Signed-off-by: NJonathan Nieder <jrnieder@uchicago.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      483bc4f0
    • J
      Documentation: be consistent about "git-" versus "git " · b1889c36
      Jonathan Nieder 提交于
      Since the git-* commands are not installed in $(bindir), using
      "git-command <parameters>" in examples in the documentation is
      not a good idea. On the other hand, it is nice to be able to
      refer to each command using one hyphenated word. (There is no
      escaping it, anyway: man page names cannot have spaces in them.)
      
      This patch retains the dash in naming an operation, command,
      program, process, or action. Complete command lines that can
      be entered at a shell (i.e., without options omitted) are
      made to use the dashless form.
      
      The changes consist only of replacing some spaces with hyphens
      and vice versa. After a "s/ /-/g", the unpatched and patched
      versions are identical.
      Signed-off-by: NJonathan Nieder <jrnieder@uchicago.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b1889c36
  24. 07 6月, 2008 1 次提交
  25. 23 4月, 2008 1 次提交
  26. 14 2月, 2008 1 次提交
  27. 24 1月, 2008 1 次提交
  28. 07 1月, 2008 1 次提交
    • D
      Documentation: rename gitlink macro to linkgit · 5162e697
      Dan McGee 提交于
      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: NDan McGee <dpmcgee@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5162e697
  29. 17 11月, 2007 1 次提交
  30. 04 11月, 2007 1 次提交
  31. 02 11月, 2007 1 次提交
  32. 08 9月, 2007 1 次提交
  33. 02 8月, 2007 1 次提交
    • J
      git-clone: aggressively optimize local clone behaviour. · 3d5c418f
      Junio C Hamano 提交于
      This changes the behaviour of cloning from a repository on the
      local machine, by defaulting to "-l" (use hardlinks to share
      files under .git/objects) and making "-l" a no-op.  A new
      option, --no-hardlinks, is also added to cause file-level copy
      of files under .git/objects while still avoiding the normal
      "pack to pipe, then receive and index pack" network transfer
      overhead.  The old behaviour of local cloning without -l nor -s
      is availble by specifying the source repository with the newly
      introduced file:///path/to/repo.git/ syntax (i.e. "same as
      network" cloning).
      
       * With --no-hardlinks (i.e. have all .git/objects/ copied via
         cpio) would not catch the source repository corruption, and
         also risks corrupted recipient repository if an
         alpha-particle hits memory cell while indexing and resolving
         deltas.  As long as the recipient is created uncorrupted, you
         have a good back-up.
      
       * same-as-network is expensive, but it would catch the breakage
         of the source repository.  It still risks corrupted recipient
         repository due to hardware failure.  As long as the recipient
         is created uncorrupted, you have a good back-up.
      
       * The new default on the same filesystem, as long as the source
         repository is healthy, it is very likely that the recipient
         would be, too.  Also it is very cheap.  You do not get any
         back-up benefit, though.
      
      None of the method is resilient against the source repository
      corruption, so let's discount that from the comparison.  Then
      the difference with and without --no-hardlinks matters primarily
      if you value the back-up benefit or not.  If you want to use the
      cloned repository as a back-up, then it is cheaper to do a clone
      with --no-hardlinks and two git-fsck (source before clone,
      recipient after clone) than same-as-network clone, especially as
      you are likely to do a git-fsck on the recipient if you are so
      paranoid anyway.
      
      Which leads me to believe that being able to use file:/// is
      probably a good idea, if only for testability, but probably of
      little practical value.  We default to hardlinked clone for
      everyday use, and paranoids can use --no-hardlinks as a way to
      make a back-up.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3d5c418f
  34. 13 7月, 2007 1 次提交
  35. 06 7月, 2007 1 次提交
    • A
      Add urls.txt to git-clone man page · 37ba0561
      Andrew Ruder 提交于
      Since git-clone is one of the many commands taking
      URLs to remote repositories as an argument, it should include
      the URL-types list from urls.txt.
      
      Split up urls.txt into urls.txt and urls-remotes.txt.  The latter
      should be used by anything besides git-clone where a discussion of
      using .git/config and .git/remotes/ to name URLs just doesn't make
      as much sense.
      Signed-off-by: NAndrew Ruder <andy@aeruder.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      37ba0561
  36. 10 6月, 2007 1 次提交