aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2021-04-27 15:17:23 -0600
committerJunio C Hamano <gitster@pobox.com>2021-04-28 16:47:16 +0900
commit40b1e1ec581e5f1e6fc3c0b317c0baf3c7817c43 (patch)
treea945105fc81b8dff1b6ac22d24398d522453ce5f /t/t4013/diff.diff_initial..side
parentsubtree: t7900: use consistent formatting (diff)
downloadgit-40b1e1ec581e5f1e6fc3c0b317c0baf3c7817c43.tar.gz
git-40b1e1ec581e5f1e6fc3c0b317c0baf3c7817c43.zip
subtree: t7900: comment subtree_test_create_repo
It's unclear what the purpose of t7900-subtree.sh's `subtree_test_create_repo` helper function is. It wraps test-lib.sh's, `test_create_repo` but follows that up by setting log.date=relative. Why does it set log.date=relative? My first guess was that at one point the tests required that, but no longer do, and that the function is now vestigial. I even wrote a patch to get rid of it and was moments away from `git send-email`ing it. However, by chance when looking for something else in the history, I discovered the true reason, from e7aac44ed2 (contrib/subtree: ignore log.date configuration, 2015-07-21). It's testing that setting log.date=relative doesn't break `git subtree`, as at one point in the past that did break `git subtree`. So, add a comment about this, to avoid future such confusion. And while at it, go ahead and (1) touch up the function to avoid a pointless subshell and (2) update the one test that didn't use it. Signed-off-by: Luke Shumaker <lukeshu@datawire.io> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions