Skip to content

Commit

Permalink
Added note on executable
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo committed Nov 5, 2019
1 parent f4a6eff commit 67dcbdb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ The formatter can act on whole files, on limited lines (`--lines`), on specific
offsets (`--offset`), passing through to standard-out (default) or altered
in-place (`--replace`).

It is convenient to have a shell script named `google-java-format` with the
java command:

```
#!/bin/sh
java -jar /path/to/google-java-format-1.7-all-deps.jar "$@"
```

To reformat changed lines in a specific patch, use
[`google-java-format-diff.py`](https://github.com/google/google-java-format/blob/master/scripts/google-java-format-diff.py).

Expand Down

0 comments on commit 67dcbdb

Please sign in to comment.