Fossil Forum
Post: git to fossil doc useful commands
Got around to mention this. I think the Checkin names doc (especially the anchor-linked "root: prefix" section) is too important and obscurely dumped in the list of docs. The git to fossil guide would deserve in its What changed? section a reference to it.
Also, that What changed section seems to focus exclusively on what changed between last commit and current, or tip and current (that is, somewhat forward-looking changes), and not enough (at all?) on backwards-looking diffing, which I do a lot more on understanding what happened on a branch.
So maybe two small sections could be added, or at least next to the forward-looking commands, their backwards-looking pairs could be added, like:
fossil diff --from current --to tip # forward-looking (the existing example)
fossil diff --from previous --to current # backward-looking, aka `git diff HEAD~..`
fossil diff --from merge-in:some-feats --to some-feats # see "Check-in Names" for additional useful ways to name commit points!
and
fossil timeline descendants current # the current, forward-looking
fossil timeline parent current # backward looking timeline (aka tim par cur, which sounds like Tim performing exercise activities, but anyway)
Above thoughts are not very well organized, but TLDR is the "Check-in names" info is too important for people transitioning from git (and maybe in general) to be hidden.
(Side-question: I don't think there's a notation like git's something^ to mark the commit before something, right? Sometimes I would appreciate not just the special "previous", but "previous:some-hash" or so.. well, minor nit)
Thank you for the excellent suggestions.
(Side-question: I don't think there's a notation like git's something^ to mark the commit before something, right? Sometimes I would appreciate not just the special "previous", but "previous:some-hash" or so.. well, minor nit)
There is not. It's been discussed at length before, but not recently, and for the life of me i don't recall why it was either outright rejected or nobody picked it up as a task.
Where would be a good place (or places) to put a diagram similar to the one below showing the meaning of some of the various prefixes?
ROOT: circle radius .1cm
N1: circle radius .1cm at 0.75cm above ROOT
MERGEIN: circle radius .1cm at 0.75cm above N1
line <- from ROOT down 1cm chop
arrow from ROOT to N1 chop
arrow from N1 to MERGEIN chop
arrow from MERGEIN up 1cm chop
START: circle radius .1cm color blue at ROOT + (0.75cm,0.4cm)
B1: circle radius .1cm color blue at START + (0,.75cm)
B2: circle radius .1cm color blue at B1 +(0,.75cm)
TIP: circle radius .1cm color blue at B2+(0,.75cm)
arrow from ROOT right even with START then up to START color blue chop
arrow from START to B1 color blue chop
arrow from B1 to B2 color blue chop
arrow from B2 to TIP color blue chop
arrow from MERGEIN.ne up even with B2 then left to B2.w thin thin
text "NAME" with .w at TIP+(1cm,0cm) color red
arrow color red from previous.w to .1cm right of TIP.e thin
text "start:NAME" with .w at START+(1cm,0) color red
arrow color red from previous.w to .1cm right of START.e thin
text "merge-in:NAME" with .e at MERGEIN+(-1cm,0cm) color red
arrow color red from previous.e to .1cm left of MERGEIN.w thin
text "root:NAME" with .e at ROOT+(-1cm,0cm) color red
arrow color red from previous.e to .1cm left of ROOT.w thin