diff options
author | 2022-10-26 21:58:57 +0300 | |
---|---|---|
committer | 2022-10-26 22:04:57 +0300 | |
commit | ee0e2cb118d696ff3412f262c677c95bc8b56e6c (patch) | |
tree | 22d9c233678607fb4766e5ab225afc19778fdd2b /tests | |
parent | commit: don't show disable for targets that are no-op (diff) | |
download | pkgdev-ee0e2cb118d696ff3412f262c677c95bc8b56e6c.tar.gz pkgdev-ee0e2cb118d696ff3412f262c677c95bc8b56e6c.tar.bz2 pkgdev-ee0e2cb118d696ff3412f262c677c95bc8b56e6c.zip |
commit: mention `-e` as nice option
Even though just passing `-e` works (as it is just passed to git), many
users don't know the existence of this option, so now I publish it in
help.
Closes: https://bugs.gentoo.org/846785
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgdev_commit.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py index efc9491..7b2eb61 100644 --- a/tests/scripts/test_pkgdev_commit.py +++ b/tests/scripts/test_pkgdev_commit.py @@ -84,6 +84,8 @@ class TestPkgdevCommitParseArgs: ('--dry-run', '--dry-run'), ('-v', '-v'), ('--verbose', '-v'), + ('-e', '--edit'), + ('--edit', '--edit'), ): options, _ = tool.parse_args(['commit', opt]) assert expected in options.commit_args @@ -94,7 +96,7 @@ class TestPkgdevCommitParseArgs: repo.create_ebuild('cat/pkg-0') git_repo.add_all('cat/pkg-0', commit=False) with chdir(repo.location): - for opt in ('--author="A U Thor <author@example.com>"', '-e'): + for opt in ('--author="A U Thor <author@example.com>"', '-p'): options, _ = tool.parse_args(['commit', opt]) assert options.commit_args == [opt] |