Fossil Command-Line Tips

Date Tags fossil

For small projects, Fossil is a great choice for version control. Fossil's command-line interface is very easy to use and plays nice with utilities like grep, gawk and xargs. The following are examples of common operations:

  • Check in only edited files: fossil changes | grep EDITED | gawk '{print $2}' | xargs fossil commit -m "Added feature X."

  • Add only files with name containing "pattern" to repo: fossil extras | grep pattern | xargs fossil add

  • Move files in repo …

more ...

Vim Run Shell Command

Date Tags vim

Here is a nice simple vimrc file addition that will execute a line as a shell command and read back the output into the buffer: nnoremap <Leader>rl yy:r!<C-r>"<CR>

more ...

Hi, I am Jeff Rimko!
A computer engineer and software developer in the greater Pittsburgh, Pennsylvania area.