author | David Aguilar <davvid@gmail.com> | |
Sun, 31 May 2009 08:35:52 +0000 (01:35 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 1 Jun 2009 00:57:59 +0000 (17:57 -0700) | ||
commit | 003b33a8ad686ee4a0d0b36635bfd6aba940b24a | |
tree | a4fb990bc62930d859f8343c41f5a3162aca6449 | tree | snapshot |
parent | e1c068869216c8c231c1585bbfa9fda42b4756f8 | commit | diff |
diff: generate pretty filenames in prep_temp_blob()
Naturally, prep_temp_blob() did not care about filenames.
As a result, GIT_EXTERNAL_DIFF and textconv generated
filenames such as ".diff_XXXXXX".
This modifies prep_temp_blob() to generate user-friendly
filenames when creating temporary files.
Diffing "name.ext" now generates "XXXXXX_name.ext".
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Naturally, prep_temp_blob() did not care about filenames.
As a result, GIT_EXTERNAL_DIFF and textconv generated
filenames such as ".diff_XXXXXX".
This modifies prep_temp_blob() to generate user-friendly
filenames when creating temporary files.
Diffing "name.ext" now generates "XXXXXX_name.ext".
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
diff.c | diff | blob | history | |
path.c | diff | blob | history | |
t/t4020-diff-external.sh | diff | blob | history |