Show More
@@ -1585,6 +1585,22 b' def commit(ui, repo, *pats, **opts):' | |||||
1585 | See :hg:`help dates` for a list of formats valid for -d/--date. |
|
1585 | See :hg:`help dates` for a list of formats valid for -d/--date. | |
1586 |
|
1586 | |||
1587 | Returns 0 on success, 1 if nothing changed. |
|
1587 | Returns 0 on success, 1 if nothing changed. | |
|
1588 | ||||
|
1589 | .. container:: verbose | |||
|
1590 | ||||
|
1591 | Examples: | |||
|
1592 | ||||
|
1593 | - commit all files ending in .py: | |||
|
1594 | ||||
|
1595 | hg commit --include 'set:**.py' | |||
|
1596 | ||||
|
1597 | - commit all non-binary files: | |||
|
1598 | ||||
|
1599 | hg commit --exclude 'set:binary()' | |||
|
1600 | ||||
|
1601 | - amend the current commit and set the date to now: | |||
|
1602 | ||||
|
1603 | hg commit --amend --date now | |||
1588 | """ |
|
1604 | """ | |
1589 | wlock = lock = None |
|
1605 | wlock = lock = None | |
1590 | try: |
|
1606 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now