Skip to content

Commit 1052b36

Browse files
committed
fix: Update README.md with commit instructions
1 parent 01bda77 commit 1052b36

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If ollama server is running, run the script using the command
3333
python3 auto_commit.py
3434
```
3535

36-
Create commit for each file
36+
Create a commit for each file.
3737

3838
```
3939
python3 auto_commit.py single_file

auto_commit.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ def git_commit_everything(message):
8989
subprocess.run(['git', 'commit', '-m', message], check=True)
9090

9191
def main():
92-
commit_single_file = False
93-
if len(sys.argv) > 1 and sys.argv[1] == "single_file":
94-
commit_single_file = True
95-
92+
commit_single_file = True if (len(sys.argv) > 1 and sys.argv[1] == "single_file") else False
9693
files = get_changed_files()
9794
if not files:
9895
print("No changes detected.")

0 commit comments

Comments
 (0)