1. 27 1月, 2008 6 次提交
  2. 26 1月, 2008 3 次提交
  3. 25 1月, 2008 2 次提交
  4. 24 1月, 2008 3 次提交
  5. 23 1月, 2008 4 次提交
    • S
      git-gui: Correctly cleanup msgfmt '1 message untranslated' output · 3b8f19a0
      Shawn O. Pearce 提交于
      In the multiple message case we remove the word "messages" from the
      statistics output of msgfmt as it looks cleaner on the tty when you
      are watching the build process.  However we failed to strip the word
      "message" when only 1 message was found to be untranslated or fuzzy,
      as msgfmt does not produce the 's' suffix.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      3b8f19a0
    • S
      git-gui: Make the statistics of po2msg match those of msgfmt · 2cd9ad2e
      Shawn O. Pearce 提交于
      The strings we were showing from po2msg didn't exactly match those
      of msgfmt's --statistics output so we didn't show quite the same
      results when building git-gui's message files.  Now we're closer
      to what msgfmt shows (at least for an en_US locale) so the make
      output matches.
      
      I noticed that the fuzzy translation count is off by one for the
      current po/zh_cn.po file.  Not sure why and I'm not going to try
      and debug it at this time as the po2msg is strictly a fallback,
      users building from source really should prefer msgfmt.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      2cd9ad2e
    • S
      git-gui: Fallback to Tcl based po2msg.sh if msgfmt isn't available · 3470adab
      Shawn O. Pearce 提交于
      If msgfmt fails with exit code 127 that typically means the program
      is not found in the user's PATH and thus cannot be executed by make.
      In such a case we can try to fallback to the Tcl based po2msg program
      that we distributed with git-gui, as it does a "good enough" job.
      
      We still don't default to po2msg.sh however as it does not perform
      a lot of the sanity checks that msgfmt does, and quite a few of
      those are too useful to give up.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      3470adab
    • S
      git-gui: Work around random missing scrollbar in revision list · 3ddff72e
      Shawn O. Pearce 提交于
      If the horizontal scrollbar isn't currently visible (because it has
      not been needed) but we get an update to the scroll port we may find
      the scrollbar window exists but the Tcl command doesn't.  Apparently
      it is possible for Tk to have partially destroyed the scrollbar by
      removing the Tcl procedure name but still leaving the widget name in
      the window registry.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      3ddff72e
  6. 22 1月, 2008 5 次提交
  7. 21 1月, 2008 17 次提交
    • S
      Document the hairy gfi_unpack_entry part of fast-import · 7422bac4
      Shawn O. Pearce 提交于
      Junio pointed out this part of fast-import wasn't very clear on
      initial read, and it took some time for someone who was new to
      fast-import's "dirty little tricks" to understand how this was
      even working.  So a little bit of commentary in the proper place
      may help future readers.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7422bac4
    • S
      Teach fast-import to honor pack.compression and pack.depth · bb23fdfa
      Shawn O. Pearce 提交于
      We now use the configured pack.compression and pack.depth values
      within fast-import, as like builtin-pack-objects fast-import is
      generating a packfile for consumption by the Git tools.
      
      We use the same behavior as builtin-pack-objects does for these
      options, allowing core.compression to supply the default value
      for pack.compression.
      
      The default setting for pack.depth within fast-import is still 10
      as users will generally repack fast-import generated packfiles by
      `repack -f`.  A large delta depth within the fast-import packfile
      can significantly slow down such a later repack.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bb23fdfa
    • S
      submodule: Document the details of the command line syntax · c4a95c9f
      Steffen Prohaska 提交于
      Only "status" accepts "--cached" and the preferred way of
      passing sub-command specific options is after the sub-command.
      
      The documentation is adapted to reflect this.
      Signed-off-by: NSteffen Prohaska <prohaska@zib.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c4a95c9f
    • J
      git-submodule: add test for the subcommand parser fix · a2d93aea
      Junio C Hamano 提交于
      This modifies the existing t7400 test to use 'init' as the
      pathname that a submodule is bound to.  Without the earlier
      subcommand parser fix, this fails.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a2d93aea
    • J
      git-submodule: fix subcommand parser · 5c08dbbd
      Junio C Hamano 提交于
      The subcommand parser of "git submodule" made its subcommand
      names reserved words.  As a consequence, a command like this:
      
          $ git submodule add init update
      
      which is meant to add a submodule called 'init' at path 'update'
      was misinterpreted as a request to invoke more than one mutually
      incompatible subcommands and incorrectly rejected.
      
      This patch fixes the issue by stopping the subcommand parsing at
      the first subcommand word, to allow the sample command line
      above to work as expected.
      
      It also introduces the usual -- option disambiguator, so that a
      submodule at path '-foo' can be updated with
      
          $ git submodule update -- -foo
      
      without triggering an "unrecognized option -foo" error.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5c08dbbd
    • J
      git-submodule: rename shell functions for consistency · 23a485e3
      Junio C Hamano 提交于
      This renames the shell functions used in git-submodule that
      implement top-level subcommands.  The rule is that the
      subcommand $foo is implemented by cmd_$foo function.
      
      A noteworthy change is that modules_list() is now known as
      cmd_status().  There is no "submodule list" command.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      23a485e3
    • J
      Merge git://repo.or.cz/git-gui · 36a189c8
      Junio C Hamano 提交于
      * git://repo.or.cz/git-gui:
        git-gui: Correct encoding of glossary/fr.po to UTF-8
        git-gui: Consolidate hook execution code into a single function
        git-gui: Correct window title for hook failure dialogs
        git-gui: Honor the standard commit-msg hook
      36a189c8
    • S
      git-gui: Correct encoding of glossary/fr.po to UTF-8 · 6caaf2da
      Shawn O. Pearce 提交于
      Junio noticed this was incorrectly added in ISO-8859-1 but it should
      be in UTF-8 (as the headers claim UTF-8, and our convention is to use
      only UTF-8).
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      6caaf2da
    • S
      git-gui: Consolidate hook execution code into a single function · ed76cb70
      Shawn O. Pearce 提交于
      The code we use to test if a hook is executable or not differs on
      Cygwin from the normal POSIX case.  Rather then repeating that for
      all three hooks we call in our commit code path we can place the
      common logic into a global procedure and invoke it when necessary.
      
      This also lets us get rid of the ugly "|& cat" we were using before
      as we can now rely on the Tcl 8.4 feature of "2>@1" or fallback to
      the "|& cat" when necessary.
      
      The post-commit hook is now run through the same API, but its outcome
      does not influence the commit status.  As a result we now show any of
      the errors from the post-commit hook in a dialog window, instead of on
      the user's tty that was used to launch git-gui.  This resolves a long
      standing bug related to not getting errors out of the post-commit hook
      when launched under git-gui.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      ed76cb70
    • S
      git-gui: Correct window title for hook failure dialogs · c87238e1
      Shawn O. Pearce 提交于
      During i18n translation work this message was partially broken
      by using "append" instead of "strcat" to join the two different
      parts of the message together.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      c87238e1
    • S
      git-gui: Honor the standard commit-msg hook · fb0ca475
      Shawn O. Pearce 提交于
      Under core Git the git-commit tool will invoke the commit-msg hook
      if it exists and is executable to the user running git-commit.  As
      a hook it has some limited value as it cannot alter the commit, but
      it can modify the message the user is attempting to commit.  It is
      also able to examine the message to ensure it conforms to some local
      standards/conventions.
      
      Since the hook takes the name of a temporary file holding the message
      as its only parameter we need to move the code that creates the temp
      file up earlier in our commit code path, and then pass through that
      file name to the latest stage (where we call git-commit-tree).  We let
      the hook alter the file as it sees fit and we don't bother to look at
      its content again until the commit succeeded and we need the subject
      for the reflog update.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      fb0ca475
    • J
      GIT 1.5.4-rc4 · ce33288e
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ce33288e
    • J
      Merge git://repo.or.cz/git-gui · 105c21df
      Junio C Hamano 提交于
      * git://repo.or.cz/git-gui:
        git-gui: Makefile - Handle $DESTDIR on Cygwin
        git-gui: add french glossary: glossary/fr.po
        git-gui: Refresh file status description after hunk application
        git-gui: Allow 'Create New Repository' on existing directories
        git-gui: Initial french translation
        git-gui: Improve German translation.
        git-gui: Updated Swedish translation after mailing list review.
        git-gui: Fix broken revert confirmation.
        git-gui: Update German translation
        git-gui: Update glossary: add term "hunk"
      105c21df
    • J
      Merge git://git.kernel.org/pub/scm/gitk/gitk · a41acc63
      Junio C Hamano 提交于
      * git://git.kernel.org/pub/scm/gitk/gitk:
        [PATCH] gitk: make Ctrl "+" really increase the font size
      a41acc63
    • G
      http-push and http-fetch: handle URLs without trailing / · 3057ded0
      Grégoire Barbier 提交于
      The URL to a repository http-push and http-fetch takes should
      have a trailing slash.  Instead of failing the request, add it
      ourselves before attempting such a request.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3057ded0
    • J
      http-push: clarify the reason of error from the initial PROPFIND request · 325ce395
      Junio C Hamano 提交于
      The first thing http-push does is a PROPFIND to see if the other
      end supports locking.  The failure message we give is always
      reported as "no DAV locking support at the remote repository",
      regardless of the reason why we ended up not finding the locking
      support on the other end.
      
      This moves the code to report "no DAV locking support" down the
      codepath so that the message is issued only when we successfully
      get a response to PROPFIND and the other end say it does not
      support locking.  Other failures, such as connectivity glitches
      and credential mismatches, have their own error message issued
      and we will not issue "no DAV locking" error (we do not even
      know if the remote end supports it).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      325ce395
    • G
      http-push: fail when info/refs exists and is already locked · 9bdbabad
      Grégoire Barbier 提交于
      Failing instead of silently not updating remote refs makes the things
      clearer for the user when trying to push on a repository while another
      person do (or while a dandling locks are waiting for a 10 minutes
      timeout).
      
      When silently not updating remote refs, the user does not even know
      that git has pushed the objects but leaved the refs as they were
      before (e.g. a new bunch of commits on branch "master" is uploaded,
      however the branch by itsel still points on the previous head commit).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9bdbabad