From dd0dd629970c7f64aba9a32848d100aac4e185b9 Mon Sep 17 00:00:00 2001 From: Peter McNeeley Date: Wed, 29 May 2024 15:49:19 +0000 Subject: [PATCH] Provide documentation for title option Perhaps this is a linux convention but it was not obvious to me that 'y' would use the default. Change-Id: I5aedcb365828015effa64d41153f6cb9c9318dfc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5580992 Commit-Queue: Peter McNeeley Reviewed-by: Yiwei Zhang --- git_cl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_cl.py b/git_cl.py index 2e5071f1d..28289832e 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1852,8 +1852,8 @@ class Changelist(object): title = RunGit(['show', '-s', '--format=%s', 'HEAD', '--']).strip() if options.force or options.skip_title: return title - user_title = gclient_utils.AskForData('Title for patchset [%s]: ' % - title) + user_title = gclient_utils.AskForData( + 'Title for patchset (\'y\' for default) [%s]: ' % title) # Use the default title if the user confirms the default with a 'y'. if user_title.lower() == 'y':