Commit Briefs


9f625d2da2 Thomas Adam

apply brevity tweaks for newly added keyword docs


3795e2b655 Thomas Adam

got: enable more commands to accept commit keywords

More work adding commit keyword support to the blame, cat, ref, tag, and tree commands. With this, all Got commands that take a <commit> option argument or operand now support keywords. Regress flub saved by op! fixes + ok op@




fb8851205d Thomas Adam

expand support for commit keywords to more got commands

Add the ability to use keywords in the backout, branch, checkout, cherrypick, and patch commands. Includes some basic regress tests for the new commands, and also some more contrived test cases for 'got log -c[:]keyword[:(+|-)[N]]'. ok stsp


1b9900744f Thomas Adam

avoid HEAD when talking about a work tree; HEAD is specific to the repository

ok jamsek



9139e0049a Thomas Adam

implement support for keywords as got <commit> arguments

This begins enabling the use of keywords in got wherever commit ids or references are used, with more work intended to expand support across all such instances (e.g., branch, checkout, etc.), and add more keywords. The keywords ":base" and ":head" can be passed to 'got {diff,log,update} -c' commands as a substitute for the corresponding commit hash id. Keywords and references can also be modified by appending a ':+' or ':-' and an optional integer N to specify by first parent traversal the Nth generation descendant or antecedent, respectively. If N is omitted, a '1' is implicitly appended. tweaks + ok op and stsp


bccae03fdb Thomas Adam

abort histedit if the user quits the editor without saving the script

Also document that the commit/import/tag operations are aborted when the user fails to save the log message from the invoked editor. ok jamsek stsp


87c986b7f0 Thomas Adam

fix broken sentence in got.1 (was missing a word)



79878eb8ee Thomas Adam

histedit, rebase: document -c, -C are compatible


dcd455ee64 Thomas Adam

fix option processing for 'got merge'

Don't make -C imply -c (a break statement was missing). Detect -an and -cn conflicts. Simplify by removing unneeded check for conflicting -aC (since -C requires -c, we can rely on the -ac conflict being detected). Update the man page to say -cC is allowed.


31009ade0d Thomas Adam

add -M option: tell got merge not to fast-forward

ok stsp@


862951558c Thomas Adam

typo





4434a15a47 Thomas Adam

prevent 'got merge' from creating commits on branches outside of "refs/heads/"

ok op, james


b21ebdb07f Thomas Adam

make 'got add' more forgiving about unversioned paths on the command line

When users run 'got add *' the shell may pick up already versioned files and trigger errors about paths being in an unexpected status. Expand the check which previously only allowed files in added status to be double-added to cover the following status codes which are all safe to ignore: A M C m This should make bulk additions of files a bit easier in most cases. Problem reported by robert@ ok jamsek


2b72f32d68 Thomas Adam

Implement fast-forward merges.

Split part of got_worktree_merge_prepare into a new function, got_worktree_merge_write_refs, since that part doesn't make sense in the fast-forward case. ok stsp@



1678610c6d Thomas Adam

allow no-op merge commits to be created

Requested by James Cook


9f32321217 Thomas Adam

handle files changing into directories during 'got update'

problem found by naddy@