aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-07-24 06:16:35 -0500
committerJunio C Hamano <gitster@pobox.com>2010-07-25 22:07:58 -0700
commitfc688759b95e6888bb1dc4c4d00d27dca4e59ddb (patch)
tree3b99ff31fab9d1d055f91a7be35999ac52c4ac93 /README
parent64fdc08dac6694d1e754580e7acb82dfa4988bb9 (diff)
downloadgit-fc688759b95e6888bb1dc4c4d00d27dca4e59ddb.tar.gz
git-fc688759b95e6888bb1dc4c4d00d27dca4e59ddb.tar.xz
t1501 (rev-parse): clarify
Tweak the style of these tests to make them easier to read. - Replace test_rev_parse() which produced multiple mini-tests with a simple function that can be used with the test body. - Combine multiple mini-tests into larger chunks that are easier to read. - Do not hard-code object IDs. We may use a different hash some day. - Use test_cmp in preference to the test builtin. The former produces useful output when tests are run with the "-v" option. - Guard all test code with test_expect_success. This makes it much easier to visually scan through the test and find code of interest. - Use subshells to make the current directory easier to track. Outside of any subshell, the current directory is always $TEST_DIRECTORY now. Also add a new test demonstrating a possible bug noticed in the process of cleaning up: “git rev-parse --show-prefix” leaves out the trailing newline after an empty prefix when cwd is at the toplevel of the work tree. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions