A powerful filter driver for Git which can automatically apply local changes to the working tree of a repository
Project description
git-smudge
A powerful filter driver for Git which can automatically apply local changes to the working tree of a repository.
Installing
Run
$ pip3 install git-smudge
Setting up a filter
There are two steps to setting up a filter in your repository. The first is to define the
filter using git config
and the second is to apply the filter to specific files using
.git/info/attributes
.
Note: All commands here are assuming you're using
bash
or another Bourne-like shell. If you're using Windows, you should haveGIT Bash
installed.
$ git config filter.replacename.process 'git-smudge --process --simple "Firefox" "Katiefox"'
$ echo *.cpp filter=replacename >> .git/info/attributes
Note: You could technically use
.gitattributes
, but since that file usually gets checked into the repo, it's not good to put local settings there.
TODO: More documentation here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for git_smudge-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2146969587e7124f5b46b1dc79b4a48acacfcf64e43329c03cf81c273fdee24e |
|
MD5 | a586ee5714d619acf3d8d4810a3d9624 |
|
BLAKE2b-256 | 1a3d765b964b8df892d86f868ed79c4eadc72fd3bda46c9603ef9f9936c9e791 |