Skip to content

Completion

steve-stanton edited this page Sep 17, 2019 · 3 revisions

Once work in a child branch has been merged into its parent, it is quite possible that you will no longer need the child. When working with git, you can just delete the branch. But with altcmd, you cannot delete anything.

Command data files are immutable. You cannot change them. And you cannot move them. A merge is accomplished by simply recording the fact that you asked the system to perform a merge. It does not actually copy any of the command data files.

This may well mean that branch listings will become cluttered with work that is ancient history. To deal with this, you use the complete command.

   work/+[25]> complete
   work/+/.[25]> ls -a
     ^/steve
     ^/steve/work (ahead of parent by 2)
   *  /steve/work/+/.
   
   25 commands in 1 local branch
   10 commands in 2 remote branches

The path for a branch that has been completed will be displayed with "/." on the end. A branch listing will not show completed branches by default. It was shown in the example above only because the --all option was included in the branch listing command line.

Branches that have been marked as completed are read-only. You can still switch to them, but you will not be able to append any further commands.

Clone this wiki locally