Skip to content

Commit

Permalink
better json handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sivang committed Dec 26, 2023
1 parent f2bc96a commit 2f3db13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agit/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ def retrieve_git_data(start_path):
"recent_commits": get_commit_history(repo),
"conflicts": get_conflict_info(repo)
}
return json.dumps(data, indent=4)

return data


if __name__ == "__main__":
r_path = '.' # Set the path to your git repository
git_data = retrieve_git_data(r_path)
print(git_data)
print(json.dumps(git_data, indent=4))

0 comments on commit 2f3db13

Please sign in to comment.