1. 15 11月, 2008 1 次提交
  2. 07 8月, 2008 1 次提交
    • J
      Files given on the command line are relative to $cwd · dbd0f5c7
      Junio C Hamano 提交于
      When running "git commit -F file" and "git tag -F file" from a
      subdirectory, we should take it as relative to the directory we started
      from, not relative to the top-level directory.
      
      This adds a helper function "parse_options_fix_filename()" to make it more
      convenient to fix this class of issues.  Ideally, parse_options() should
      support a new type of option, "OPT_FILENAME", to do this uniformly, but
      this patch is meant to go to 'maint' to fix it minimally.
      
      One thing to note is that value for "commit template file" that comes from
      the command line is taken as relative to $cwd just like other parameters,
      but when it comes from the configuration varilable 'commit.template', it
      is taken as relative to the working tree root as before.  I think this
      difference actually is sensible (not that I particularly think
      commit.template itself is sensible).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      dbd0f5c7
  3. 22 7月, 2008 1 次提交
  4. 16 7月, 2008 1 次提交
  5. 09 7月, 2008 1 次提交
  6. 01 7月, 2008 7 次提交
  7. 23 6月, 2008 1 次提交
  8. 15 6月, 2008 1 次提交
  9. 10 4月, 2008 1 次提交
  10. 28 3月, 2008 1 次提交
  11. 03 3月, 2008 1 次提交
  12. 01 3月, 2008 1 次提交
  13. 27 1月, 2008 1 次提交
    • P
      parse-options: catch likely typo in presense of aggregated options. · 3a9f0f41
      Pierre Habouzit 提交于
      If options are aggregated, and that the whole token is an exact
      prefix of a long option that is longer than 2 letters, reject
      it.  This is to prevent a common typo:
      
      	$ git commit -amend
      
      to get interpreted as "commit all with message 'end'".
      
      The typo check isn't performed if there is no aggregation,
      because the stuck form is the recommended one.  If we have `-o`
      being a valid short option that takes an argument, and --option
      a long one, then we _MUST_ accept -option as "'o' option with
      argument 'ption'", which is our official recommended form.
      Signed-off-by: NPierre Habouzit <madcoder@debian.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3a9f0f41
  14. 23 12月, 2007 1 次提交
  15. 23 11月, 2007 1 次提交
  16. 12 11月, 2007 1 次提交
    • P
      parse-options new features. · db7244bd
      Pierre Habouzit 提交于
      options flags:
      ~~~~~~~~~~~~~
        PARSE_OPT_NONEG allow the caller to disallow the negated option to exists.
      
      option types:
      ~~~~~~~~~~~~
        OPTION_BIT: ORs (or NANDs) a mask.
        OPTION_SET_INT: force the value to be set to this integer.
        OPTION_SET_PTR: force the value to be set to this pointer.
      
      helper:
      ~~~~~~
        HAS_MULTI_BITS (in git-compat-util.h) is a bit-hack to check if an
        unsigned integer has more than one bit set, useful to check if conflicting
        options have been used.
      Signed-off-by: NPierre Habouzit <madcoder@debian.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      db7244bd
  17. 06 11月, 2007 1 次提交
  18. 30 10月, 2007 7 次提交