git-commitflow 1.1.2__tar.gz → 1.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-commitflow
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: A git add/commit/push helper
5
5
  Home-page: https://github.com/jamescherti/git-commitflow
6
6
  Author: James Cherti
@@ -102,7 +102,6 @@ Readline manager.
102
102
  options:
103
103
  -h, --help show this help message and exit
104
104
  -p, --push Git push after a successful commit
105
- -r, --recursive Apply git-commitflow to all submodules
106
105
  ```
107
106
 
108
107
  ## Customizations
@@ -68,7 +68,6 @@ Readline manager.
68
68
  options:
69
69
  -h, --help show this help message and exit
70
70
  -p, --push Git push after a successful commit
71
- -r, --recursive Apply git-commitflow to all submodules
72
71
  ```
73
72
 
74
73
  ## Customizations
@@ -93,14 +93,14 @@ class GitCommitFlow:
93
93
  "pushed multiple times. This minimizes redundant pushes.)"),
94
94
  )
95
95
 
96
- parser.add_argument(
97
- "-r",
98
- "--recursive",
99
- default=False,
100
- action="store_true",
101
- required=False,
102
- help="Apply git-commitflow to all submodules",
103
- )
96
+ # parser.add_argument(
97
+ # "-r",
98
+ # "--recursive",
99
+ # default=False,
100
+ # action="store_true",
101
+ # required=False,
102
+ # help="Apply git-commitflow to all submodules",
103
+ # )
104
104
 
105
105
  return parser.parse_args()
106
106
 
@@ -114,7 +114,8 @@ class GitCommitFlow:
114
114
  f"'{self.git_repo_dir}'.")
115
115
  sys.exit(1)
116
116
 
117
- self.git_submodule_foreach()
117
+ # Buggy
118
+ # self.git_submodule_foreach()
118
119
 
119
120
  if self._run("git status --porcelain"):
120
121
  self.git_add()
@@ -132,29 +133,29 @@ class GitCommitFlow:
132
133
 
133
134
  sys.exit(errno)
134
135
 
135
- def git_submodule_foreach(self):
136
- try:
137
- git_commit_wrapper_recursive = \
138
- int(os.environ.get("GIT_COMMIT_WRAPPER_RECURSIVE", "0"))
139
- except ValueError:
140
- git_commit_wrapper_recursive = 0
141
-
142
- if self.args.recursive or git_commit_wrapper_recursive:
143
- if not (self.git_repo_dir / ".gitmodules").is_file():
144
- return
145
-
146
- git_ci_script = Path(__file__).absolute()
147
- print(f"{Fore.LIGHTYELLOW_EX}[SUBMODULE FORREACH] "
148
- f"{self.git_repo_dir}{Fore.RESET}")
149
- cmd = ["git", "submodule", "--quiet", "foreach", "--recursive",
150
- str(git_ci_script)]
151
- if self.args.push:
152
- cmd += ["--push"]
153
- try:
154
- subprocess.check_call(cmd)
155
- except subprocess.CalledProcessError as proc_err:
156
- print(f"Error: {proc_err}", file=sys.stderr)
157
- sys.exit(1)
136
+ # def git_submodule_foreach(self):
137
+ # try:
138
+ # git_commit_wrapper_recursive = \
139
+ # int(os.environ.get("GIT_COMMIT_WRAPPER_RECURSIVE", "0"))
140
+ # except ValueError:
141
+ # git_commit_wrapper_recursive = 0
142
+ #
143
+ # if self.args.recursive or git_commit_wrapper_recursive:
144
+ # if not (self.git_repo_dir / ".gitmodules").is_file():
145
+ # return
146
+ #
147
+ # git_ci_script = Path(__file__).absolute()
148
+ # print(f"{Fore.LIGHTYELLOW_EX}[SUBMODULE FORREACH] "
149
+ # f"{self.git_repo_dir}{Fore.RESET}")
150
+ # cmd = ["git", "submodule", "--quiet", "foreach", "--recursive",
151
+ # str(git_ci_script)]
152
+ # if self.args.push:
153
+ # cmd += ["--push"]
154
+ # try:
155
+ # subprocess.check_call(cmd)
156
+ # except subprocess.CalledProcessError as proc_err:
157
+ # print(f"Error: {proc_err}", file=sys.stderr)
158
+ # sys.exit(1)
158
159
 
159
160
  def git_ci(self) -> int:
160
161
  """Function that performs the git commit."""
@@ -382,7 +383,7 @@ class GitCommitFlow:
382
383
  previous_message = \
383
384
  "\n".join(
384
385
  self._run("git --no-pager log -1 --pretty=%B")).rstrip()
385
- print("Previous git message: ",
386
+ print("Previous git message:",
386
387
  Fore.YELLOW + previous_message + Fore.RESET)
387
388
  self.readline_manager.append_to_history(previous_message)
388
389
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-commitflow
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: A git add/commit/push helper
5
5
  Home-page: https://github.com/jamescherti/git-commitflow
6
6
  Author: James Cherti
@@ -102,7 +102,6 @@ Readline manager.
102
102
  options:
103
103
  -h, --help show this help message and exit
104
104
  -p, --push Git push after a successful commit
105
- -r, --recursive Apply git-commitflow to all submodules
106
105
  ```
107
106
 
108
107
  ## Customizations
@@ -23,7 +23,7 @@ from setuptools import find_packages, setup
23
23
 
24
24
  setup(
25
25
  name="git-commitflow",
26
- version="1.1.2",
26
+ version="1.1.4",
27
27
  packages=find_packages(),
28
28
  description="A git add/commit/push helper",
29
29
  long_description=((Path(__file__).parent.resolve().joinpath("README.md"))
File without changes
File without changes