1. 17 12月, 2006 2 次提交
  2. 16 12月, 2006 14 次提交
    • J
      Document git-merge-file · 9abaa7f0
      Johannes Schindelin 提交于
      Most of this is derived from the documentation of RCS merge.
      Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9abaa7f0
    • Q
      git-clone documentation · a2e88b35
      Quy Tonthat 提交于
      When --use-separate-remote is used on git-clone, the remote
      heads are saved under $GIT_DIR/refs/remotes/origin/, not
      "$GIT_DIR/remotes/origin/"
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a2e88b35
    • A
      git-status always says what branch it's on · a990999e
      Andy Parkins 提交于
      If the current branch was "master" then git-status wouldn't say
      
       # On branch XXXX
      
      In its output.  This patch makes it so that this message is always
      output; regardless of branch name.
      Signed-off-by: NAndy Parkins <andyparkins@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a990999e
    • S
      Align section headers of 'git status' to new 'git add'. · 82dca848
      Shawn O. Pearce 提交于
      Now that 'git add' is considered a first-class UI for 'update-index'
      and that the 'git add' documentation states "Even modified files
      must be added to the set of changes about to be committed" we should
      make the output of 'git status' align with that documentation and
      common usage.
      
      So now we see a status output such as:
      
        # Added but not yet committed:
        #   (will commit)
        #
        #       new file: x
        #
        # Changed but not added:
        #   (use "git add file1 file2" to include for commit)
        #
        #       modified:   x
        #
        # Untracked files:
        #   (use "git add" on files to include for commit)
        #
        #       y
      
      which just reads better in the context of using 'git add' to
      manipulate a commit (and not a checkin, whatever the heck that is).
      
      We also now support 'color.status.added' as an alias for the existing
      'color.status.updated', as this alias more closely aligns with the
      current output and documentation.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      82dca848
    • S
      Suggest use of "git add file1 file2" when there is nothing to commit. · aeb80c70
      Shawn O. Pearce 提交于
      If a user modifies files and runs 'git commit' (without the very
      useful -a option) and they have not yet updated the index they
      are probably coming from another SCM-like tool which would perform
      the same as 'git commit -a' in this case.  Showing the user their
      current status and a final line of "nothing to commit" is not very
      reassuring, as the user might believe that Git did not recognize
      their files were modified.
      
      Instead we can suggest as part of the 'nothing to commit' message
      that the user invoke 'git add' to add files to their next commit.
      
      Suggested by Andy Parkins' Git 'niggles' list
      (<200612132237.10051.andyparkins@gmail.com>).
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      aeb80c70
    • B
      Make git-diff documentation use [--] when it should. · e697e4cd
      Brian Gernhardt 提交于
      Two of the cases has "[--] [<path>...]" and two had "-- [<path>...]".
      Not terribly consistent and potentially confusing.  Also add "[--]" to
      the synopsis so that it's obvious you can use it from the very
      beginning.
      Signed-off-by: NBrian Gernhardt <benji@silverinsanity.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e697e4cd
    • B
      Add --add option to git-repo-config · 89c4afe0
      Brian Gernhardt 提交于
      For multivars, the "git-repo-config name value ^$" is useful but
      nonintuitive and troublesome to do repeatedly (since the value is not
      at the end of the command line).  This commit simply adds an --add
      option that adds a new value to a multivar.  Particularly useful for
      tracking a new branch on a remote:
      
      git-repo-config --add remote.origin.fetch +next:origin/next
      
      Includes documentation and test.
      Signed-off-by: NBrian Gernhardt <benji@silverinsanity.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      89c4afe0
    • S
      Teach bash the new features of 'git show'. · 90131924
      Shawn O. Pearce 提交于
      Now that 'git show' accepts ref:path as an argument to specify a
      tree or blob we should use the same completion logic as we support
      for cat-file's object identifier.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      90131924
    • L
      Export PERL_PATH · 3a793478
      Luben Tuikov 提交于
      PERL_PATH is used by perl/Makefile so export it.
      Signed-off-by: NLuben Tuikov <ltuikov@yahoo.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      3a793478
    • S
      Enable reflogs by default in any repository with a working directory. · 0bee5918
      Shawn O. Pearce 提交于
      New and experienced Git users alike are finding out too late that
      they forgot to enable reflogs in the current repository, and cannot
      use the information stored within it to recover from an incorrectly
      entered command such as `git reset --hard HEAD^^^` when they really
      meant HEAD^^ (aka HEAD~2).
      
      So enable reflogs by default in all future versions of Git, unless
      the user specifically disables it with:
      
        [core]
          logAllRefUpdates = false
      
      in their .git/config or ~/.gitconfig.
      
      We only enable reflogs in repositories that have a working directory
      associated with them, as shared/bare repositories do not have
      an easy means to prune away old log entries, or may fail logging
      entirely if the user's gecos information is not valid during a push.
      This heuristic was suggested on the mailing list by Junio.
      
      Documentation was also updated to indicate the new default behavior.
      We probably should start to teach usuing the reflog to recover
      from mistakes in some of the tutorial material, as new users are
      likely to make a few along the way and will feel better knowing
      they can recover from them quickly and easily, without fsck-objects'
      lost+found features.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0bee5918
    • S
      Provide more meaningful output from 'git init-db'. · ef0a89a6
      Shawn O. Pearce 提交于
      Back in the old days of Git when people messed around with their
      GIT_DIR environment variable more often it was nice to know whether
      or not git-init-db created a .git directory or used GIT_DIR.
      As most users at that time were rather technical UNIXy folk the
      message "defaulting to local storage area" made sense to some and
      seemed reasonable.
      
      But it doesn't really convey any meaning to the new Git user,
      as they don't know what a 'local storage area is' nor do they
      know enough about Git to care.  It also really doesn't tell the
      experienced Git user a whole lot about the command they just ran,
      especially if they might be reinitializing an existing repository
      (e.g. to update hooks).
      
      So now we print out what we did ("Initialized empty" or
      "Reinitialized existing"), what type of repository ("" or "shared"),
      and what location the repository will be in ("$GIT_DIR").
      
      Suggested in part by Andy Parkins in his Git 'niggles' list
      (<200612132237.10051.andyparkins@gmail.com>).
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ef0a89a6
    • N
      make commit message a little more consistent and conforting · ebd124c6
      Nicolas Pitre 提交于
      It is nicer to let the user know when a commit succeeded all the time,
      not only the first time.  Also the commit sha1 is much more useful than
      the tree sha1 in this case.
      
      This patch also introduces a -q switch to supress this message as well
      as the summary of created/deleted files.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ebd124c6
    • S
      Avoid accessing a slow working copy during diffcore operations. · 1510fea7
      Shawn O. Pearce 提交于
      The Cygwin folks have done a fine job at creating a POSIX layer
      on Windows That Just Works(tm).  However it comes with a penalty;
      accessing files in the working tree by way of stat/open/mmap can
      be slower for diffcore than inflating the data from a blob which
      is stored in a packfile.
      
      This performance problem is especially an issue in merge-recursive
      when dealing with nearly 7000 added files, as we are loading
      each file's content from the working directory to perform rename
      detection.  I have literally seen (and sadly watched) paint dry in
      less time than it takes for merge-recursive to finish such a merge.
      On the other hand this very same merge runs very fast on Solaris.
      
      If Git is compiled with NO_FAST_WORKING_DIRECTORY set then we will
      avoid looking at the working directory when the blob in question
      is available within a packfile and the caller doesn't need the data
      unpacked into a temporary file.
      
      We don't use loose objects as they have the same open/mmap/close
      costs as the working directory file access, but have the additional
      CPU overhead of needing to inflate the content before use.  So it
      is still faster to use the working tree file over the loose object.
      
      If the caller needs the file data unpacked into a temporary file
      its likely because they are going to call an external diff program,
      passing the file as a parameter.  In this case reusing the working
      tree file will be faster as we don't need to inflate the data and
      write it out to a temporary file.
      
      The NO_FAST_WORKING_DIRECTORY feature is enabled by default on
      Cygwin, as that is the platform which currently appears to benefit
      the most from this option.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1510fea7
    • J
      Merge branch 'js/show' · 1576f5f7
      Junio C Hamano 提交于
      * js/show:
        git-show: grok blobs, trees and tags, too
      1576f5f7
  3. 14 12月, 2006 24 次提交