1. 04 2月, 2008 2 次提交
  2. 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
  3. 21 1月, 2008 4 次提交
    • 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
  4. 18 1月, 2008 2 次提交
  5. 16 1月, 2008 8 次提交
  6. 30 12月, 2007 2 次提交
  7. 14 12月, 2007 3 次提交
  8. 06 12月, 2007 2 次提交
  9. 03 12月, 2007 3 次提交
  10. 27 11月, 2007 2 次提交
  11. 23 11月, 2007 2 次提交
  12. 21 11月, 2007 1 次提交
  13. 08 11月, 2007 1 次提交
  14. 01 11月, 2007 4 次提交