git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 3/3] bash-completion: Added comments to remind about required arguments

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 15, 2009, 15:35 UTC
Message-ID
<20090115153543.GF10179@spearce.org>
In-Reply-To
<1231963342-24461-3-git-send-email-ted@tedpavlic.com>
ted@tedpavlic.com wrote:
Show 13 quoted lines
> From: Ted Pavlic <ted@tedpavlic.com>
> 
>   Adds a few simple comments above commands that take arguments. These
>   comments are meant to remind developers of potential problems that can
>   occur when the script is sourced on systems with "set -u." Any
>   function which "requires" arguments really ought to be called with
>   explicit arguments given.
> 
>   Also adds a #!bash to the top of bash completions so that editing
>   software can always identify that the file is of sh type.
> 
> Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
> Acked-by: Shawn O. Pearce <spearce@spearce.org>

Yup, this and also 2/3 look fine. But again, the message, it shouldn't be indented.

> ---
>  contrib/completion/git-completion.bash |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
-- 
Shawn.
Previous: ted@tedpavlic.comNext: Ted Pavlic
Message 4 of 6 in “bash-completion: Support running when set -u is enabled”
  1. 1/3 bash-completion: Support running when set -u is enabledted@tedpavlic.com, Jan 14, 2009
  2. 2/3 bash-completion: Try bash completions before simple filetypeted@tedpavlic.com, Jan 14, 2009
  3. 3/3 bash-completion: Added comments to remind about required argumentsted@tedpavlic.com, Jan 14, 2009
  4. Shawn O. PearceJan 15, 2009
  5. Ted PavlicJan 15, 2009
  6. Shawn O. PearceJan 15, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.