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
- Host: GitHub
- URL: https://github.com/ext/git-etc-add-package
- Owner: ext
- License: mit
- Created: 2015-08-06T20:12:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-30T15:58:17.000Z (about 10 years ago)
- Last Synced: 2026-02-19T04:28:33.322Z (4 months ago)
- Topics: git
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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