mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-27 01:23:43 +01:00
Merge pull request #43 from matrix-org/speculator-diff
speculator: Unified diff for rst diff
This commit is contained in:
commit
b2eb7e7dc1
|
|
@ -182,7 +182,7 @@ func serveRstDiff(w http.ResponseWriter, req *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
diffCmd := exec.Command("diff", path.Join(base, "scripts", "tmp", "full_spec.rst"), path.Join(head, "scripts", "tmp", "full_spec.rst"))
|
diffCmd := exec.Command("diff", "-u", path.Join(base, "scripts", "tmp", "full_spec.rst"), path.Join(head, "scripts", "tmp", "full_spec.rst"))
|
||||||
var diff bytes.Buffer
|
var diff bytes.Buffer
|
||||||
diffCmd.Stdout = &diff
|
diffCmd.Stdout = &diff
|
||||||
if err := ignoreExitCodeOne(diffCmd.Run()); err != nil {
|
if err := ignoreExitCodeOne(diffCmd.Run()); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue