1. 06 4月, 2006 8 次提交
  2. 05 4月, 2006 18 次提交
  3. 04 4月, 2006 8 次提交
  4. 03 4月, 2006 6 次提交
    • J
      git-clone: fix handling of upsteram whose HEAD does not point at master. · c72112e6
      Junio C Hamano 提交于
      When cloning from a remote repository that has master, main, and
      origin branches _and_ with the HEAD pointing at main branch, we
      did quite confused things during clone.  So this cleans things
      up.  The behaviour is a bit different between separate remotes/
      layout and the mixed branches layout.
      
      The newer layout with $GIT_DIR/refs/remotes/$origin/, things are
      simpler and more transparent:
      
       - remote branches are copied to refs/remotes/$origin/.
      
       - HEAD points at the branch with the same name as the remote
         HEAD points at, and starts at where the remote HEAD points at.
      
       - $GIT_DIR/remotes/$origin file is set up to fetch all remote
         branches, and merge the branch HEAD pointed at at the time of
         the cloning.
      
      Everything-in-refs/heads layout was the more confused one, but
      cleaned up like this:
      
       - remote branches are copied to refs/heads, but the branch
         "$origin" is not copied, instead a copy of the branch the
         remote HEAD points at is created there.
      
       - HEAD points at the branch with the same name as the remote
         HEAD points at, and starts at where the remote HEAD points at.
      
       - $GIT_DIR/remotes/$origin file is set up to fetch all remote
         branches except "$origin", and merge the branch HEAD pointed
         at at the time of the cloning.
      
      With this, the remote has master, main and origin, and its HEAD
      points at main, you could:
      
      	git clone $URL --origin upstream
      
      to use refs/heads/upstream as the tracking branch for remote
      "main", and your primary working branch will also be "main".
      "master" and "origin" are used to track the corresponding remote
      branches and with this setup they do not have any special meaning.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c72112e6
    • J
      fix repacking with lots of tags · 40e907bf
      Jim Radford 提交于
      Use git-rev-list's --all instead of git-rev-parse's to keep from
      hitting the shell's argument list length limits when repacking
      with lots of tags.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      40e907bf
    • J
      Documentation: revise top of git man page · 23091e95
      J. Bruce Fields 提交于
      I'm afraid I'll be accused of trying to suck all the jokes and the
      personality out of the git documentation.  I'm not!  Really!
      
      That said, "man git" is one of the first things a new user is likely try,
      and it seems a little cruel to start off with a somewhat obscure joke
      about the architecture of git.
      
      So instead I'm trying for a relatively straightforward description of what
      git does, and what features distinguish it from other systems, together
      with immediate links to introductory documentation.
      
      I also did some minor reorganization in an attempt to clarify the
      classification of commands.  And revised a bit for conciseness (as is
      obvious from the diffstat--hopefully I didn't cut anything important).
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      23091e95
    • L
      pack-objects: be incredibly anal about stdio semantics · da93d12b
      Linus Torvalds 提交于
      This is the "letter of the law" version of using fgets() properly in the
      face of incredibly broken stdio implementations.  We can work around the
      Solaris breakage with SA_RESTART, but in case anybody else is ever that
      stupid, here's the "safe" (read: "insanely anal") way to use fgets.
      
      It probably goes without saying that I'm not terribly impressed by
      Solaris libc.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      da93d12b
    • L
      Fix Solaris stdio signal handling stupidities · fb7a6531
      Linus Torvalds 提交于
      This uses sigaction() to install the SIGALRM handler with SA_RESTART, so
      that Solaris stdio doesn't break completely when a signal interrupts a
      read.
      
      Thanks to Jason Riedy for confirming the silly Solaris signal behaviour.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fb7a6531
    • R
      ec26b4d6