diff --git a/git-context b/git-context index 92e2b81..52ee01e 100755 --- a/git-context +++ b/git-context @@ -8,6 +8,7 @@ Usage: git context [--depth N] [--files] [--log N] [--output file] [--dir 0 else None, + "branches": branches, + "project_structure": tree_out, + "file_contents": file_contents(target) if args.files else None, + } + output = json.dumps(data, indent=2) + else: + output = "\n".join(sections) if args.output: Path(args.output).write_text(output)