-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 'git config' instead of ConfigParser #58
base: develop
Are you sure you want to change the base?
Conversation
ConfigParser is no longer used and all parsing is done by 'git config'. If no configuration file is passed as an argument, git-fat will parse the following files: 1. Any colon-separated files in the environment variable $GIT_FAT_CONFIG, if any. 2. All Git configuration files as per 'git config' without the '--file' switch. 3. $(git rev-parse --show-toplevel)/.gitfat git-fat will perform interpolation if needed to resolve git-fat related configuration values. This version works fine with legacy .gitffat files, but introduces support for the following syntax: [gitfat] canned-error-message = "Please have a look at ..." [gitfat "rsync"] remote = {siteconfig.synchost}:{siteconfig.syncroot} user = git port = 2222 [gitfat "http"] remote = {siteconfig.http-url} [defaults "gitfat"] backend = rsync [defaults "siteconfig"] synchost = localhost syncroot = /path/to/local/store/mount http-url = http://storage.example.com/store
Wow, thanks! This is going to take a while to review so please forgive me if it's slow :-P. |
|
||
:: | ||
|
||
cat >> .gitattributes <<EOF | ||
*.deb filter=fat -crlf | ||
*.deb filter=kat -crlf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, indeed. Thanks @justinclift.
@abraithwaite, should I close this pull request and make a new one? Or do you want to go through the changes first?.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can actually just push an additional commit to your branch and it will automatically be added to the pull request. Sorry I haven't had time to review this yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem @abraithwaite I bet it will take you less time to review this than it took for me to get it sent anyway.
I was just adding a fat file to one of my repos and it occured to me that in some environments, common fat files such as In this case, the documentation should point out that users will need to use Also, another point that wasn't immediately apparent to me when I first started using git-fat is that the user must do the Taken together, I think a little cookbook might be in order for the end user who starts working in a repo already configured for git fat:
|
Just started to take a look at this. Can you try running the tests against the code? I'm seeing a lot of style tests failing.
|
I was running the tests directly with
I will look into the |
Hi, I pushed now a commit where Tox is passing. In addition to cleaning the style violations, I have had to tweak a little the config files:
|
ConfigParser is no longer used and all parsing is done by 'git config'.
If no configuration file is passed as an argument, git-fat will parse
the following files:
git-fat will perform interpolation if needed to resolve git-fat related configuration
values.
This version works fine with legacy .gitffat files, but introduces support for
the syntax below. See the README file for more details.