Personal NixOS configuration files

git: Improve `generate` script #1

Closed lesbian.skin
Closed opened by lesbian.skin

Currently the script always asks for a message, if the message is empty then it makes the generation the title.

The problem with this currently is that it means commit descriptions, like in 90218c6 are a pain to make, either requiring me to manually go through each step in the script or to amend the commit.

A good solution seems to be to write the important data into a file, use that file as a template for git commit using -t <file>, --template=<file>, and then open the visual editor.

Another option is to use multiple -ms but this feels like it would be clunkier and more restrictive.

Sign up or Sign in to add to the discussion.