Skip to content
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

[Fix #47] Refactor git checking #71

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

el1t
Copy link
Contributor

@el1t el1t commented Jun 2, 2016

Speeds up runtime by 20-25%. Addresses issues with supplied git directories (#47)

  • ensure directory can be cd'd into
  • pushd into folders to check for repo
  • run git commands from correct directory
  • check for repo in each base_dir, using $GIT_TOPLEVEL for entire base_dir
  • consolidate git-related (repomarker) code
  • removed use of $IS_GIT_REPO

- ensure directory can be cd'd into
- cd into folders to check for repo
- run git commands from correct directory
- check for repo in each base_dir, using $GIT_TOPLEVEL for entire base_dir
- consolidate git-related (repomarker) code
- removed use of $IS_GIT_REPO
@supercrabtree
Copy link
Owner

Nice! thanks, will have to find some time to give a proper review, will get on it as soon as possible.

@el1t
Copy link
Contributor Author

el1t commented Jun 3, 2016

No problem, please let me know if anything's against your preferred style!

@supercrabtree
Copy link
Owner

Hey there, just wanted to let you know I hadn't forgotten about this, just been very busy recently. I have just cracked how to do unit tests for k here so I want to get some coverage across the current code, then I will start merging the pull requests I have waiting. Thanks again.

@el1t
Copy link
Contributor Author

el1t commented Jul 26, 2016

No worries, testing looks really neat! By the way, I just figured out how to preserve dirs history with these changes as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants