1. 29 12月, 2010 1 次提交
    • J
      Merge branch 'nd/setup' · f3bb8b4b
      Junio C Hamano 提交于
      * nd/setup: (47 commits)
        setup_work_tree: adjust relative $GIT_WORK_TREE after moving cwd
        git.txt: correct where --work-tree path is relative to
        Revert "Documentation: always respect core.worktree if set"
        t0001: test git init when run via an alias
        Remove all logic from get_git_work_tree()
        setup: rework setup_explicit_git_dir()
        setup: clean up setup_discovered_git_dir()
        t1020-subdirectory: test alias expansion in a subdirectory
        setup: clean up setup_bare_git_dir()
        setup: limit get_git_work_tree()'s to explicit setup case only
        Use git_config_early() instead of git_config() during repo setup
        Add git_config_early()
        git-rev-parse.txt: clarify --git-dir
        t1510: setup case #31
        t1510: setup case #30
        t1510: setup case #29
        t1510: setup case #28
        t1510: setup case #27
        t1510: setup case #26
        t1510: setup case #25
        ...
      f3bb8b4b
  2. 28 12月, 2010 1 次提交
  3. 24 12月, 2010 1 次提交
  4. 23 12月, 2010 20 次提交
  5. 22 12月, 2010 11 次提交
  6. 21 12月, 2010 3 次提交
    • J
      commit: die before asking to edit the log message · 4c28e4ad
      Junio C Hamano 提交于
      When determine_author_info() returns to the calling prepare_to_commit(),
      we already know the pieces of information necessary to determine what
      author ident will be used in the final message, but deferred making a call
      to fmt_ident() before the final commit_tree().  Most importantly, we would
      open the editor to ask the user to compose the log message before it.
      
      As one important side effect of fmt_ident() is to error out when the given
      information is malformed, this resulted in us spawning the editor first
      and then refusing to commit due to error, even though we had enough
      information to detect the error before starting the editor, which was
      annoying.
      
      Move the fmt_ident() call to the end of determine_author_info() where we
      have final determination of author info to rectify this.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4c28e4ad
    • M
      completion: add missing configuration variables · 6068ac88
      Martin von Zweigbergk 提交于
      Quite a few configuration variables have been added since 226b343c
      (completion: add missing configuration variables to _git_config(),
      2009-05-03). Add these variables to the Bash completion script.
      
      Also remove the obsolete 'add.ignore-errors' and
      'color.grep.external', as well as 'diff.renameLimit.', which never
      existed and rename the misspelled 'sendemail.aliasesfiletype'.
      Signed-off-by: NMartin von Zweigbergk <martin.von.zweigbergk@gmail.com>
      Acked-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6068ac88
    • J
      ident: die on bogus date format · 4579bb41
      Jeff King 提交于
      If the user gives "git commit --date=foobar", we silently
      ignore the --date flag. We should note the error.
      
      This patch puts the fix at the lowest level of fmt_ident,
      which means it also handles GIT_AUTHOR_DATE=foobar, as well.
      
      There are two down-sides to this approach:
      
        1. Technically this breaks somebody doing something like
           "git commit --date=now", which happened to work because
           bogus data is the same as "now". Though we do
           explicitly handle the empty string, so anybody passing
           an empty variable through the environment will still
           work.
      
           If the error is too much, perhaps it can be downgraded
           to a warning?
      
        2. The error checking happens _after_ the commit message
           is written, which can be annoying to the user. We can
           put explicit checks closer to the beginning of
           git-commit, but that feels a little hack-ish; suddenly
           git-commit has to care about how fmt_ident works. Maybe
           we could simply call fmt_ident earlier?
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4579bb41
  7. 20 12月, 2010 3 次提交
    • K
      fill_textconv(): Don't get/put cache if sha1 is not valid · 9ec09b04
      Kirill Smelkov 提交于
      When blaming files in the working tree, the filespec is marked with
      !sha1_valid, as we have not given the contents an object name yet.  The
      function to cache textconv results (keyed on the object name), however,
      didn't check this condition, and ended up on storing the cached result
      under a random object name.
      
      Cc: Axel Bonnet <axel.bonnet@ensimag.imag.fr>
      Cc: Clément Poulain <clement.poulain@ensimag.imag.fr>
      Cc: Diane Gasselin <diane.gasselin@ensimag.imag.fr>
      Cc: Jeff King <peff@peff.net>
      Signed-off-by: NKirill Smelkov <kirr@landau.phys.spbu.ru>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9ec09b04
    • K
      t/t8006: Demonstrate blame is broken when cachetextconv is on · b1b14ec3
      Kirill Smelkov 提交于
      I have a git repository with lots of .doc and .pdf files. There diff
      works ok, but blaming is painfully slow without textconv cache, and with
      textconv cache, blame says lots of lines are 'Not Yet Committed' which
      is wrong.
      
      Here is a test that demonstrates the problem.
      
      Cc: Axel Bonnet <axel.bonnet@ensimag.imag.fr>
      Cc: Clément Poulain <clement.poulain@ensimag.imag.fr>
      Cc: Diane Gasselin <diane.gasselin@ensimag.imag.fr>
      Cc: Jeff King <peff@peff.net>
      Signed-off-by: NKirill Smelkov <kirr@landau.phys.spbu.ru>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b1b14ec3
    • J
      Merge branch 'maint' · f29db856
      Junio C Hamano 提交于
      * maint:
        gitweb: Include links to feeds in HTML header only for '200 OK' response
        fsck docs: remove outdated and useless diagnostic
        userdiff: fix typo in ruby and python word regexes
        trace.c: mark file-local function static
        Fix typo in git-gc document.
      f29db856