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

Refactor repo handling into SubGitRepo class #63

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,6 @@ bare/
.idea/*
code/
_manifest/


smoke_tests/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ You can reset repos in which changes have been made such as new files or new com

```bash
# Reset all repos in sequence if they are dirty

subgit reset

# Reset one specified repo if it's dirty
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
extras_require={
"test": ["pytest", "pytest-mock", "mock", "tox", "tox-gh-actions"],
"dev": [
"invoke>=2.2.0",
"ruff>=0.0.285",
"ptpython",
],
Expand Down
21 changes: 19 additions & 2 deletions subgit/constants.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# -*- coding: utf-8 -*-

DEFAULT_REPO_DICT = {"repos": []}
DEFAULT_REPO_DICT = {
"repos": [
{
"name": "subgit",
"url": "git@github.com:dynamist/subgit.git",
"revision": {
"branch": "master",
},
}
]
}

REVISION_BRANCH = "branch"
REVISION_COMMIT = "commit"
REVISION_TAG = "tag"

WORKER_COUNT = 8

__all__ = [
"DEFAULT_REPO_DICT",
"WORKER_COUNT"
"REVISION_BRANCH",
"REVISION_COMMIT",
"REVISION_TAG",
"WORKER_COUNT",
]
Loading
Loading