aboutsummaryrefslogtreecommitdiff
path: root/tests/t0106-diff.sh
AgeCommit message (Collapse)Author
5 hoursdiff: allow stepping back N commits from the selected refsHEADv1.3.1+16masterdevelopGravatar Saya Andy
The ref pickers can only select the exact ref that is shown. Add an offset input next to each picker (idoff and id2off), whose value is the number of commits to step back, so any ancestor of a branch or tag can be compared without typing a rev into the url by hand. An apply button submits the values typed there, since text inputs cannot be auto-submitted on their own; the flip link swaps the offsets along with the refs, and the file-level links carry them through. By default both offsets are empty, meaning the selected refs themselves. An empty ref submitted from the form is likewise treated as no ref instead of triggering a bad object name error.
9 hoursdiff: add a flip link to the refs panelv1.3.1+15Gravatar Saya Andy
The from and to refs of a diff can only be swapped by editing the url by hand. Add a flip link to the refs panel that opens the same diff with the refs swapped, carrying the current head and options.
15 hoursdiff: split refs and other options into separate panelsv1.3.1+14Gravatar Saya Andy
The diff controls panel mixed the from/to ref pickers with the rendering options (context, space, mode). Split it into two panels, stacked vertically: one for the refs and one for the other options, so each groups related controls.
2026-08-15diff: pick refs from web uiv1.3.1+13Gravatar Saya Andy
Beforehand the choice between two refs in diff could not be changed from web ui (only via url query), and by default it was current and previous commit. Now it is doable with dropdown menus.
2013-04-08tests: use Git's test frameworkGravatar John Keeping
This allows tests to run in parallel as well as letting us use "prove" or another TAP harness to run the tests. Git's test framework requires Git to be fully built before letting any tests run, so add a new target to the top-level Makefile which builds all of Git instead of just libgit.a and make the "test" target depend on that. Signed-off-by: John Keeping <john@keeping.me.uk>
2013-03-04tests: "grep -e" is not portable to all platformsGravatar John Keeping
The "-e" option to grep is not needed unless specifying more than one pattern, which we don't do. Remove it to avoid restricting the tests on platforms that do not have a grep that recognises "-e". Signed-off-by: John Keeping <john@keeping.me.uk>
2007-11-11Create initial testsuiteGravatar Lars Hjemli
This creates a simple testsuite, heavily inspired by the testsuite in git. Signed-off-by: Lars Hjemli <hjemli@gmail.com>