aboutsummaryrefslogtreecommitdiff
path: root/ui-clone.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-09-08 00:11:57 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-09-08 00:11:57 +0700
commit3e40b846456e4efc06ece7180ef152e053114385 (patch)
treefcf80f1d06756472f996bf306ee1fdf1dc9a3b98 /ui-clone.c
parent3b18a7d8c9608ed0bf13d546018f44e703c62e11 (diff)
downloadcgitext-3e40b846456e4efc06ece7180ef152e053114385.tar.gz
cgitext-3e40b846456e4efc06ece7180ef152e053114385.zip
diff: allow stepping back N commits from the selected refsHEADv1.3.1+16masterdevelop
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.
Diffstat (limited to 'ui-clone.c')
0 files changed, 0 insertions, 0 deletions