1. 10 3月, 2011 23 次提交
  2. 09 3月, 2011 2 次提交
    • J
      i18n: do not poison translations unless GIT_GETTEXT_POISON envvar is set · 30955229
      Jonathan Nieder 提交于
      Tweak the GETTEXT_POISON facility so it is activated at run time
      instead of compile time.  If the GIT_GETTEXT_POISON environment
      variable is set, _(msg) will result in gibberish as before; but if the
      GIT_GETTEXT_POISON variable is not set, it will return the message for
      human-readable output.  So the behavior of mistranslated and
      untranslated git can be compared without rebuilding git in between.
      
      For simplicity we always set the GIT_GETTEXT_POISON variable in tests.
      
      This does not affect builds without the GETTEXT_POISON compile-time
      option set, so non-i18n git will not be slowed down.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      30955229
    • Æ
      i18n: add GETTEXT_POISON to simulate unfriendly translator · bb946bba
      Ævar Arnfjörð Bjarmason 提交于
      Add a new GETTEXT_POISON compile-time parameter to make _(msg) always
      return gibberish. So now you can run
      
      	make GETTEXT_POISON=YesPlease
      
      to get a copy of git that functions correctly (one hopes) but produces
      output that is in nobody's native language at all.
      
      This is a debugging aid for people who are working on the i18n part of
      the system, to make sure that they are not marking plumbing messages
      that should never be translated with _().
      
      As new strings get marked for translation, naturally a number of tests
      will be broken in this mode. Tests that depend on output from
      Porcelain will need to be marked with the new C_LOCALE_OUTPUT test
      prerequisite. Newly failing tests that do not depend on output from
      Porcelain would be bugs due to messages that should not have been
      marked for translation.
      
      Note that the string we're using ("# GETTEXT POISON #") intentionally
      starts the pound sign. Some of Git's tests such as
      t3404-rebase-interactive.sh rely on interactive editing with a fake
      editor, and will needlessly break if the message doesn't start with
      something the interactive editor considers a comment.
      
      A future patch will fix fix the underlying cause of that issue by
      adding "#" characters to the commit advice automatically.
      Signed-off-by: NÆvar Arnfjörð Bjarmason <avarab@gmail.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bb946bba
  3. 22 2月, 2011 2 次提交
  4. 10 2月, 2011 1 次提交
    • J
      fast-import: introduce "feature notes" command · 547e8b92
      Jonathan Nieder 提交于
      Here is a 'feature' command for streams to use to require support for
      the notemodify (N) command.
      
      When the 'feature' facility was introduced (v1.7.0-rc0~95^2~4,
      2009-12-04), the notes import feature was old news (v1.6.6-rc0~21^2~8,
      2009-10-09) and it was not obvious it deserved to be a named feature.
      But now that is clear, since all major non-git fast-import backends
      lack support for it.
      
      Details: on git version with this patch applied, any "feature notes"
      command in the features/options section at the beginning of a stream
      will be treated as a no-op.  On fast-import implementations without
      the feature (and older git versions), the command instead errors out
      with a message like
      
      	This version of fast-import does not support feature notes.
      
      So by declaring use of notes at the beginning of a stream, frontends
      can avoid wasting time and other resources when the backend does not
      support notes.  (This would be especially important for backends that
      do not support rewinding history after a botched import.)
      Improved-by: NThomas Rast <trast@student.ethz.ch>
      Improved-by: NSverre Rabbelier <srabbelier@gmail.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      547e8b92
  5. 08 2月, 2011 4 次提交
  6. 01 2月, 2011 1 次提交
  7. 28 1月, 2011 2 次提交
  8. 25 1月, 2011 1 次提交
  9. 22 1月, 2011 1 次提交
    • J
      Subject: setup: officially support --work-tree without --git-dir · 4868b2ea
      Jonathan Nieder 提交于
      The original intention of --work-tree was to allow people to work in a
      subdirectory of their working tree that does not have an embedded .git
      directory.  Because their working tree, which their $cwd was in, did not
      have an embedded .git, they needed to use $GIT_DIR to specify where it is,
      and because this meant there was no way to discover where the root level
      of the working tree was, so we needed to add $GIT_WORK_TREE to tell git
      where it was.
      
      However, this facility has long been (mis)used by people's scripts to
      start git from a working tree _with_ an embedded .git directory, let git
      find .git directory, and then pretend as if an unrelated directory were
      the associated working tree of the .git directory found by the discovery
      process.  It happens to work in simple cases, and is not worth causing
      "regression" to these scripts.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4868b2ea
  10. 20 1月, 2011 2 次提交
  11. 19 1月, 2011 1 次提交