Skip to content

Commit 6b9883d

Browse files
committed
Refactor create_init_git_commit function: streamline argument order and improve documentation clarity
1 parent 185c260 commit 6b9883d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

exporters/git/generate_commits.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,20 @@
2222

2323
def create_init_git_commit(
2424
data: dict,
25-
output_file: Path,
2625
markdown_content: str,
26+
output_file: Path,
2727
verbose: bool = False
2828
) -> str:
2929
"""
3030
Create the initial git commit for an SFS document.
3131
32-
This function merges functionality from both create_init_git_commit and init_commit.
33-
It handles creating commits for individual documents and assumes we're already in a
34-
git repository and on the correct branch.
32+
It handles creating commits for individual documents and assumes
33+
we're already in a git repository and on the correct branch.
3534
3635
Args:
3736
data: JSON data containing document information
38-
output_file: Path to the output markdown file (for local reference)
3937
markdown_content: The markdown content to commit and save
38+
output_file: Path to the output markdown file (for local reference)
4039
verbose: Enable verbose output
4140
4241
Returns:

0 commit comments

Comments
 (0)