1. 06 12月, 2007 10 次提交
  2. 05 12月, 2007 10 次提交
  3. 04 12月, 2007 14 次提交
  4. 03 12月, 2007 6 次提交
    • W
      7e018be2
    • J
      git-commit --allow-empty · 5241b6bf
      Junio C Hamano 提交于
      It does not usually make sense to record a commit that has the exact
      same tree as its sole parent commit and that is why git-commit prevents
      you from making such a mistake, but when data from foreign scm is
      involved, it is a different story.  We are equipped to represent such an
      (perhaps insane, perhaps by mistake, or perhaps done on purpose) empty
      change, and it is better to represent it bypassing the safety valve for
      native use.
      
      This is primarily for use by foreign scm interface scripts.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5241b6bf
    • J
      git-commit --allow-empty · 36863af1
      Junio C Hamano 提交于
      It does not usually make sense to record a commit that has the exact
      same tree as its sole parent commit and that is why git-commit prevents
      you from making such a mistake, but when data from foreign scm is
      involved, it is a different story.  We are equipped to represent such an
      (perhaps insane, perhaps by mistake, or perhaps done on purpose) empty
      change, and it is better to represent it bypassing the safety valve for
      native use.
      
      This is primarily for use by foreign scm interface scripts.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      36863af1
    • J
      git-commit: Allow to amend a merge commit that does not change the tree · 13aba1e5
      Johannes Sixt 提交于
      Normally, it should not be allowed to generate an empty commit. A merge
      commit generated with git 'merge -s ours' does not change the tree (along
      the first parent), but merges are not "empty" even if they do not change
      the tree. Hence, commit 8588452c allowed to amend a merge commit that
      does not change the tree, but 4fb5fd5d disallowed it again in an
      attempt to avoid that an existing commit is amended such that it becomes
      empty. With this change, a commit can be edited (create a new one or amend
      an existing one) either if there are changes or if there are at least two
      parents.
      Signed-off-by: NJohannes Sixt <johannes.sixt@telecom.at>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      13aba1e5
    • J
      git-commit: Allow to amend a merge commit that does not change the tree · 9663c3bc
      Junio C Hamano 提交于
      Normally, it should not be allowed to generate an empty commit. A merge
      commit generated with git 'merge -s ours' does not change the tree (along
      the first parent), but merges are not "empty" even if they do not change
      the tree. Hence, we should be careful not to forbid this case.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9663c3bc
    • J
      quote_path: fix collapsing of relative paths · 69e74918
      Jeff King 提交于
      The code tries to collapse identical leading components
      between the prefix and the path. So if we're in "dir1", the
      path "dir1/file" should become just "file". However, we were
      ending up with "../dir1/file". The included test expected
      the wrong output.
      
      The "len" parameter to quote_path can be negative to mean
      "this is a NUL terminated string".  Simply count it so that
      the loop can rely on it being the length of the path.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      69e74918