From e479a2d01e382312b74e4ba8df3c42b9e325ceca Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 12 Dec 2017 17:16:26 +0000 Subject: [PATCH 1/3] hg-commit: add page --- pages/common/hg-commit.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/hg-commit.md diff --git a/pages/common/hg-commit.md b/pages/common/hg-commit.md new file mode 100644 index 000000000..263502588 --- /dev/null +++ b/pages/common/hg-commit.md @@ -0,0 +1,27 @@ +# hg commit + +> Commit all staged or specified files to the repository. + +- Commit staged files to the repository: + +`hg commit` + +- Commit a specific file or directory: + +`hg commit {{path/to/file}}` + +- Commit with a specific message: + +`hg commit -m/--message {{message}}` + +- Commit all files matching a specified pattern: + +`hg commit -I/--include {{pattern}}` + +- Commit all files excluding those that match a specified pattern: + +`hg commit -X/--exclude {{pattern}}` + +- Commit using the interactive mode: + +`hg commit -i/--interactive` From a1142500285cfd1b92fdea7121e43d92a5e3e743 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 12 Dec 2017 20:22:20 +0000 Subject: [PATCH 2/3] Update hg-commit.md --- pages/common/hg-commit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/hg-commit.md b/pages/common/hg-commit.md index 263502588..636cb4a8c 100644 --- a/pages/common/hg-commit.md +++ b/pages/common/hg-commit.md @@ -18,7 +18,7 @@ `hg commit -I/--include {{pattern}}` -- Commit all files excluding those that match a specified pattern: +- Commit all files, excluding those that match a specified pattern: `hg commit -X/--exclude {{pattern}}` From 7f8b0495b44f15b3067fcdf0154fce6784ed59a4 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Tue, 12 Dec 2017 22:40:38 +0000 Subject: [PATCH 3/3] Removed short flags --- pages/common/hg-commit.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/hg-commit.md b/pages/common/hg-commit.md index 636cb4a8c..3faf5ba99 100644 --- a/pages/common/hg-commit.md +++ b/pages/common/hg-commit.md @@ -12,16 +12,16 @@ - Commit with a specific message: -`hg commit -m/--message {{message}}` +`hg commit --message {{message}}` - Commit all files matching a specified pattern: -`hg commit -I/--include {{pattern}}` +`hg commit --include {{pattern}}` - Commit all files, excluding those that match a specified pattern: -`hg commit -X/--exclude {{pattern}}` +`hg commit --exclude {{pattern}}` - Commit using the interactive mode: -`hg commit -i/--interactive` +`hg commit --interactive`