baldwin 0.0.3__tar.gz → 0.0.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.
Potentially problematic release.
This version of baldwin might be problematic. Click here for more details.
- {baldwin-0.0.3 → baldwin-0.0.4}/PKG-INFO +1 -1
- {baldwin-0.0.3 → baldwin-0.0.4}/baldwin/__init__.py +1 -1
- {baldwin-0.0.3 → baldwin-0.0.4}/baldwin/main.py +8 -5
- {baldwin-0.0.3 → baldwin-0.0.4}/pyproject.toml +1 -1
- {baldwin-0.0.3 → baldwin-0.0.4}/README.md +0 -0
- {baldwin-0.0.3 → baldwin-0.0.4}/baldwin/resources/default_gitattributes.txt +0 -0
- {baldwin-0.0.3 → baldwin-0.0.4}/baldwin/resources/default_gitignore.txt +0 -0
- {baldwin-0.0.3 → baldwin-0.0.4}/baldwin/resources/prettier.config.json +0 -0
- {baldwin-0.0.3 → baldwin-0.0.4}/baldwin/utils.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""Manage a home directory with Git."""
|
|
2
|
-
__version__ = '0.0.
|
|
2
|
+
__version__ = '0.0.4'
|
|
@@ -79,11 +79,14 @@ def auto_commit() -> None:
|
|
|
79
79
|
for y in repo.untracked_files) if x.is_file() and not is_binary(str(x))
|
|
80
80
|
]
|
|
81
81
|
]
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
if items_to_add:
|
|
83
|
+
format_(items_to_add)
|
|
84
|
+
repo.index.add(items_to_add)
|
|
85
|
+
if items_to_remove := [p for e in diff_items if not (p := Path.home() / e.a_path).exists()]:
|
|
86
|
+
repo.index.remove(items_to_remove)
|
|
87
|
+
if items_to_add or items_to_remove:
|
|
88
|
+
repo.index.commit(f'Automatic commit @ {datetime.now(tz=UTC).isoformat()}',
|
|
89
|
+
committer=Actor('Auto-commiter', 'hgit@tat.sh'))
|
|
87
90
|
|
|
88
91
|
|
|
89
92
|
@click.command(context_settings={'help_option_names': ('-h', '--help')})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|