You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,32 @@
12
12
13
13
## Usage
14
14
15
-
To use GitDiff4LLM, run the following command:
15
+
You can either provide commit hashes to compare directly, or use the -b option to compare the latest commit in the current branch with the latest common commit in another branch (e.g., `master`). You can also specify an output file, or let the script default to the system's temporary directory if no output file is provided.
16
+
17
+
### Compare Latest Commit with Another Branch
18
+
19
+
To compare the latest commit in the current branch with the latest common commit in another branch (e.g., `master`), use the `-b` option:
Compare the latest commit in the current branch with the latest common commit in master, and write the result to a default file in the system's temporary directory
*`-o`, `--output_file`: (Optional) Path to the output file. If not provided, the diff will be written to a default file in the system's temporary directory.
40
+
27
41
## Prerequisites
28
42
29
43
-**PowerShell (Windows Only)**: If you're using Windows, you need to run the script in PowerShell. The pattern matching functionality in the script will not work properly in Command Prompt (`cmd`).
0 commit comments