Check core.excludesfile git configuration for ignore file #175

Merged
merged 1 commit into from Mar 11, 2013

Conversation

Projects
None yet
2 participants
@cmr
Contributor

cmr commented Mar 9, 2013

Fixes #159

+ i = 64;
+ while (fread(gitconfig_res, 1, 64, gitconfig_file) == 64) {
+ i += 64;
+ gitconfig_res = realloc(gitconfig_res, i);

This comment has been minimized.

Show comment Hide comment
@ggreer

ggreer Mar 11, 2013

Owner

Not a big deal, but there are malloc/realloc wrappers in util.h. I'll change the code after merging.

@ggreer

ggreer Mar 11, 2013

Owner

Not a big deal, but there are malloc/realloc wrappers in util.h. I'll change the code after merging.

@ggreer

This comment has been minimized.

Show comment Hide comment
@ggreer

ggreer Mar 11, 2013

Owner

Owner

ggreer commented Mar 11, 2013

ggreer added a commit that referenced this pull request Mar 11, 2013

Merge pull request #175 from cmr/global_gitignore
Check core.excludesfile git configuration for ignore file

@ggreer ggreer merged commit 79969ae into ggreer:master Mar 11, 2013

zph added a commit to zph/the_platinum_searcher that referenced this pull request Jun 23, 2014

Add .gitignore_global along with .ptignore
HACK: should be implemented like
ggreer/the_silver_searcher#175 ie not hard coded.

`git config -z --get core.excludesfile` yields the gitignore_global
filename/path

zph added a commit to zph/the_platinum_searcher that referenced this pull request Jun 23, 2014

zph added a commit to zph/the_platinum_searcher that referenced this pull request Jun 24, 2014

Add git's global gitignore setting
Issue solved: Respect git's global gitignore setting.

Solution: Execute git command to check if there's a global gitignore
setting.  If so, use that as a further filter for ignoring files.

Credit for idea and git commands:
ggreer/the_silver_searcher#175.

zph added a commit to zph/the_platinum_searcher that referenced this pull request Jun 24, 2014

Add git's global gitignore setting
Issue solved: Respect git's global gitignore setting.

Solution: Execute git command to check if there's a global gitignore
setting.  If so, use that as a further filter for ignoring files.

Credit for idea and git commands:
ggreer/the_silver_searcher#175.

@zph zph referenced this pull request in monochromegane/the_platinum_searcher Jun 24, 2014

Merged

Add git's global gitignore setting #42

zph added a commit to zph/the_platinum_searcher that referenced this pull request Jun 27, 2014

Add git's global gitignore setting
Issue solved: Respect git's global gitignore setting.

Solution: Execute git command to check if there's a global gitignore
setting.  If so, use that as a further filter for ignoring files.

- Add unique option for NoGlobalGitIgnore
- Option defaults to `false`
- If option is false, query git for globalignore path.

Credit for idea and git commands:
ggreer/the_silver_searcher#175.

zph added a commit to zph/the_platinum_searcher that referenced this pull request Jun 27, 2014

Add git's global gitignore setting
Issue solved: Respect git's global gitignore setting.

Solution: Execute git command to check if there's a global gitignore
setting.  If so, use that as a further filter for ignoring files.

- Add unique option for NoGlobalGitIgnore
- Option defaults to `false`
- If option is false, query git for globalignore path.

Credit for idea and git commands:
ggreer/the_silver_searcher#175.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment