An open API service indexing awesome lists of open source software.

https://github.com/ext/git-etc-add-package

Add all files in /etc belonging to a specific package in gentoo
https://github.com/ext/git-etc-add-package

git

Last synced: about 1 month ago
JSON representation

Add all files in /etc belonging to a specific package in gentoo

Awesome Lists containing this project

README

          

# git-etc-add-package

For those running Gentoo Linux and keeping /etc in a git repo this script will
help to prepare one commit per updated package after updating your system.

## Usage

It assumes /etc is already under version control.

git etc-add-package FILENAME
git diff --cached
git commit

The script will automatically find all other files belonging to the same package
and stage all for commit. Inspect the changes using `diff --cached` and then
`git commit` as usual.

Use `--gitignore` to generate a predefined set of ignored files:

git etc-add-package --gitignore

## Install

Put the script somewhere in your path, e.g. `/usr/local/bin`.

## Known issues

* Doesn't handle ignored files too well (it works but warns)
* Doesn't handle files removed from packages