From cef38fe8ef5226efb3bc01ca10ec0dfd563562ed Mon Sep 17 00:00:00 2001 From: Harry Mumford-Turner Date: Tue, 10 Oct 2017 16:23:07 +0100 Subject: [PATCH 1/3] diffstat: add page ---- - [x] The page (if new), does not already exist in the repo. - [x] The page (if new), has been added to the correct platform folder: `common/` if it's common to all platforms, `linux/` if it's Linux-specific, and so on. - [x] The page has 8 or fewer examples. - [ x The PR is appropriately titled: `: add page` for new pages, or `: ` for pages being edited - [x] The page follows the [contributing](https://github.com/tldr-pages/tldr/blob/master/CONTRIBUTING.md) guidelines --- pages/common/diffstat.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/common/diffstat.md diff --git a/pages/common/diffstat.md b/pages/common/diffstat.md new file mode 100644 index 000000000..7d0c87d27 --- /dev/null +++ b/pages/common/diffstat.md @@ -0,0 +1,11 @@ +# diffstat + +> Make histogram of diff-output + +- Display changes in a histogram: + +`diff {{file1}} {{file2}} | diffstat` + +- Display inserted, deleted, modified changes in table format: + +`diff {{file1}} {{file2}} | diffstat -t` From 5f0222e3404487df52a7d705222375423fb730d4 Mon Sep 17 00:00:00 2001 From: Harry Mumford-Turner Date: Tue, 10 Oct 2017 16:53:28 +0100 Subject: [PATCH 2/3] Added period --- pages/common/diffstat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/diffstat.md b/pages/common/diffstat.md index 7d0c87d27..fb846261f 100644 --- a/pages/common/diffstat.md +++ b/pages/common/diffstat.md @@ -1,6 +1,6 @@ # diffstat -> Make histogram of diff-output +> Make histogram of diff-output. - Display changes in a histogram: From c43138e2a2a5aa35a1757be5d0e0d4bdf482d6a4 Mon Sep 17 00:00:00 2001 From: Harry Mumford-Turner Date: Wed, 11 Oct 2017 19:57:10 +0100 Subject: [PATCH 3/3] Changed wording for the description and 2nd command --- pages/common/diffstat.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/diffstat.md b/pages/common/diffstat.md index fb846261f..65ee4db4b 100644 --- a/pages/common/diffstat.md +++ b/pages/common/diffstat.md @@ -1,11 +1,11 @@ # diffstat -> Make histogram of diff-output. +> Create a histogram from the output of the `diff` command. - Display changes in a histogram: `diff {{file1}} {{file2}} | diffstat` -- Display inserted, deleted, modified changes in table format: +- Display inserted, deleted and modified changes as a table: `diff {{file1}} {{file2}} | diffstat -t`