1. 18 5月, 2011 2 次提交
    • M
      config: Give error message when not changing a multivar · 5a2df368
      Michael J Gruber 提交于
      When trying to set a multivar with "git config var value", "git config"
      issues
      
      warning: remote.repoor.push has multiple values
      
      leaving the user under the impression that the operation succeeded,
      unless one checks the return value.
      
      Instead, make it
      
      warning: remote.repoor.push has multiple values
      error: cannot overwrite multiple values with a single value
             Use a regexp, --add or --set-all to change remote.repoor.push.
      
      to be clear and helpful.
      
      Note: The "warning" is raised through other code paths also so that it
      needs to remain a warning for these (which do not raise the error). Only
      the caller can determine how to go on from that.
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5a2df368
    • M
      config: define and document exit codes · 7a397419
      Michael J Gruber 提交于
      The return codes of git_config_set() and friends are magic numbers right
      in the source. #define them in cache.h where the functions are declared,
      and use the constants in the source.
      
      Also, mention the resulting exit codes of "git config" in its man page
      (and complete the list).
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7a397419
  2. 17 5月, 2011 18 次提交
  3. 16 5月, 2011 9 次提交
  4. 15 5月, 2011 2 次提交
  5. 14 5月, 2011 9 次提交