ref: d5e2a8d00b4f769d56e567905c4c6689e803a49e
parent: 92eaddb3cdb3bd9921d9178b0d21ecc0771d76d1
author: kvik <kvik@a-b.xyz>
date: Thu Nov 14 22:05:51 EST 2019
This change factors out a common initialization sequence done by most scripts into a shared gitup function that 1) determines if it was run in a git repository (exiting if not), 2) stashes the repository root path into a shared $gitroot variable, 3) changes directory to $gitroot, and 4) runs git/fs. git/add and git/revert are updated to make use of $gitroot, resulting in some further cleanup. Move git/fs init into common.rc; update scripts.