mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
commit: add some help examples (issue4963)
Includes documenting --date now, which resolves the above issue.
This commit is contained in:
parent
f675aea41b
commit
31fc3d117c
@ -1585,6 +1585,22 @@ def commit(ui, repo, *pats, **opts):
|
||||
See :hg:`help dates` for a list of formats valid for -d/--date.
|
||||
|
||||
Returns 0 on success, 1 if nothing changed.
|
||||
|
||||
.. container:: verbose
|
||||
|
||||
Examples:
|
||||
|
||||
- commit all files ending in .py:
|
||||
|
||||
hg commit --include 'set:**.py'
|
||||
|
||||
- commit all non-binary files:
|
||||
|
||||
hg commit --exclude 'set:binary()'
|
||||
|
||||
- amend the current commit and set the date to now:
|
||||
|
||||
hg commit --amend --date now
|
||||
"""
|
||||
wlock = lock = None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user