1. 08 2月, 2007 3 次提交
  2. 07 2月, 2007 21 次提交
  3. 06 2月, 2007 16 次提交
    • J
      annotate: fix for cvsserver. · e68989a7
      Junio C Hamano 提交于
      git-cvsserver does not want the boundary commits shown any differently.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e68989a7
    • J
      gitweb: fix mismatched parenthesis · c8f80d4d
      Junio C Hamano 提交于
      An earlier commit 04179418 broke gitweb.  Badly.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c8f80d4d
    • J
      git-push: allow globbing wildcard refspec. · d46ae3f0
      Junio C Hamano 提交于
      This allows you to set up mothership-satellite configuration
      more symmetrically and naturally by allowing the globbing
      wildcard refspec for git-push.  On your satellite machine:
      
          [remote "mothership"]
              url = mothership:project.git
              fetch = refs/heads/*:refs/remotes/mothership/*
              push = refs/heads/*:refs/remotes/satellite/*
      
      You would say "git fetch mothership" to update your tracking
      branches under mothership/ to keep track of the progress on the
      mothership side, and when you are done working on the satellite
      machine, you would "git push mothership" to update their
      tracking branches under satellite/.  Corresponding configuration
      on the mothership machine can be used to make "git fetch satellite"
      update its tracking branch under satellite/. on the mothership.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d46ae3f0
    • S
      Correct minor style issue in fast-import. · e5b1444b
      Shawn O. Pearce 提交于
      Junio noticed that I was using a different style in fast-import
      for returned pointers than the rest of Git.  Before merging this
      code into the main git.git tree I'd like to make it consistent,
      as this style variation was not intentional.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      e5b1444b
    • S
      Correct compiler warnings in fast-import. · 10e8d688
      Shawn O. Pearce 提交于
      Junio noticed these warnings/errors in fast-import when compiling
      with `-Werror -ansi -pedantic`.  A few changes are to reduce compiler
      warnings, while one (in cmd_merge) is a bug fix.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      10e8d688
    • S
      Remove --branch-log from fast-import. · 0b868e02
      Shawn O. Pearce 提交于
      The --branch-log option and its associated code hasn't been used in
      several months, as its not really very useful for debugging fast-import
      or a frontend.  I don't plan on supporting it in this state long-term,
      so I'm killing it now before it gets distributed to a wider audience.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      0b868e02
    • S
      bash: Complete git-remote subcommands. · 88293c67
      Shawn O. Pearce 提交于
      Completing the 3 core subcommands to git-remote, along with the
      names of remotes for 'show' and 'prune' (which take only existing
      remotes) is handy.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      88293c67
    • S
      bash: Support git-rebase -m continuation completion. · c5650b08
      Shawn O. Pearce 提交于
      Apparently `git-rebase -m` uses a metadata directory within .git
      (.git/.dotest-merge) rather than .dotest used by git-am (and
      git-rebase without the -m option).  This caused the completion code
      to not offer --continue, --skip or --abort when working within a
      `git-rebase -m` session.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c5650b08
    • S
      Initial draft of fast-import documentation. · 6e411d20
      Shawn O. Pearce 提交于
      This is a first pass at the manpage for git-fast-import.
      
      I have tried to cover the input format in extreme detail, creating a
      reference which is more detailed than the BNF grammar appearing in
      the header of fast-import.c.  I have also covered some details about
      gfi's performance and memory utilization, as well as the average
      learning curve required to create a gfi frontend application (as it
      is far lower than it might appear on first glance).
      
      The documentation still lacks real example input streams, which may
      turn out to be difficult to format in asciidoc due to the blank lines
      which carry meaning within the format.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      6e411d20
    • S
      Don't support shell-quoted refnames in fast-import. · 6c3aac1c
      Shawn O. Pearce 提交于
      The current implementation of shell-style quoted refnames and
      SHA-1 expressions within fast-import contains a bad memory leak.
      We leak the unquoted strings used by the `from` and `merge`
      commands, maybe others.  Its also just muddling up the docs.
      
      Since Git refnames cannot contain LF, and that is our delimiter
      for the end of the refname, and we accept any other character
      as-is, there is no reason for these strings to support quoting,
      except to be nice to frontends.  But frontends shouldn't be
      expecting to use funny refs in Git, and its just as simple to
      never quote them as it is to always pass them through the same
      quoting filter as pathnames.  So frontends should never quote
      refs, or ref expressions.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      6c3aac1c
    • J
      Fix longstanding mismerge of ALL_CFLAGS vs BASIC_CFLAGS · 8188e73b
      Junio C Hamano 提交于
      The earlier commit d7b6c3c0 (Aug 15, 2006) introduced this
      mismerge when most of the CFLAGS were renamed to BASIC_CFLAGS.
      
      Not that it matters right now, since we do not compile XS
      Perl extensions which wanted non GNU subset of ALL_CFLAGS for
      compilation, but we should make things consistent.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8188e73b
    • L
      pager: Work around window resizing bug in 'less' · 35ce8622
      Linus Torvalds 提交于
      If you resize the terminal while less is waiting for input, less
      will exit entirely without even showing the output. This is very
      noticeable if you do something like "git diff" on a big and
      cold-cache tree and git takes a few seconds to think, and then
      you resize the window while it's preparing. Boom. No output AT
      ALL.
      
      The way to reproduce the problem is to do some pager operation
      that takes a while in git, and resizing the window while git is
      thinking about the output.  Try
      
      	git diff --stat v2.6.12..
      
      in the kernel tree to do something where it takes a while for git to start
      outputting information.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      35ce8622
    • J
      Teach git-remote add to fetch and track · b6f5da1e
      Junio C Hamano 提交于
      This adds three options to 'git-remote add'.
      
       * -f (or --fetch) option tells it to also run the initial "git
          fetch" using the newly created remote shorthand.
      
       * -t (or --track) option tells it not to use the default
          wildcard to track all branches.
      
       * -m (or --master) option tells it to make the
          remote/$name/HEAD point at a remote tracking branch other
          than master.
      
      For example, with this I can say:
      
        $ git remote add -f -t master -t quick-start -m master \
          jbf-um git://linux-nfs.org/~bfields/git.git/
      
      to
      
       (1) create remote.jbf-um.url;
      
       (2) track master and quick-start branches (and no other); the
           two -t options create these two lines:
      
             fetch = +refs/heads/master:refs/remotes/jbf-um/master
             fetch = +refs/heads/quick-start:refs/remotes/jbf-um/quick-start
      
       (3) set up remotes/jbf-um/HEAD to point at jbf-um/master so
           that later I can say "git log jbf-um"
      
      Or I could do
      
        $ git remote add -t 'ap/*' andy /home/andy/git.git
      
      to make Andy's topic branches kept track of under refs/remotes/andy/ap/.
      
      Other possible improvements I considered but haven't implemented
      (hint, hint) are:
      
       * reject wildcard letters other than a trailing '*' to the -t
         parameter;
      
       * make -m optional and when the first -t parameter does not
         have the trailing '*' default to that value (so the above
         example does not need to say "-m master");
      
       * if -m is not given, and -t parameter ends with '*' (i.e. the
         above defaulting did not tell us where to point HEAD at), and
         if we did the fetch with -f, check if 'master' was fetched
         and make HEAD point at it.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b6f5da1e
    • J
      blame: document --contents option · 06e75a72
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      06e75a72
    • J
      Use pretend_sha1_file() in git-blame and git-merge-recursive. · 005f85d9
      Junio C Hamano 提交于
      git-merge-recursive wants an null tree as the fake merge base
      while producing the merge result tree.  The null tree does not
      have to be written out in the object store as it won't be part
      of the result, and it is a prime example for using the new
      pretend_sha1_file() function.
      
      git-blame needs to register an arbitrary data to in-core index
      while annotating a working tree file (or standard input), but
      git-blame is a read-only application and the user of it could
      even lack the privilege to write into the object store; it is
      another good example for pretend_sha1_file().
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      005f85d9
    • J
      Add pretend_sha1_file() interface. · d66b37bb
      Junio C Hamano 提交于
      The new interface allows an application to temporarily hash a
      small number of objects and pretend that they are available in
      the object store without actually writing them.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d66b37bb