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

Re: [PATCH 1/2] Unification of user message strings

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 20, 2012, 12:01 UTC
Message-ID
<m339934h39.fsf@localhost.localdomain>
In-Reply-To
<4F683622.6010409@lyx.org>
Vincent van Ravesteijn <vfr@lyx.org> writes:
Show 17 quoted lines
> > I had a vague impression that plumbing messages tend to be lowercase.  If
> > it is not be too much trouble, it might be interesting to redo the numbers
> > divided into the plumbing and Porcelain messages. Perhaps these "50%"
> > folks updated both plumbing and Porcelain. Another possibility is that
> > they tried to follow the local convention when they added a new one, or
> > reworded an existing one.
> >
> > If we would be rewording, we would only be doing the Porcelain messages,
> > so I am OK with either way.
> 
> It seems that the terms "Porcelain" and "plumbing" seems to be mixed
> up somewhere.
> 
>  From 'git help status': "The porcelain format is similar to the short
> format, but is guaranteed not to change in a backwards-incompatible
> way between git versions or based on user configuration. This makes it
> ideal for parsing by scripts".
The '--porcelain' option means "intended *for* parsing by porcelain",
not that it is 'porcelain' output.
 
Show 5 quoted lines
>  From 'http://progit.org/book/ch9-1.html': "....it has a bunch of
> verbs that do low-level work and were designed to be chained together
> UNIX style or called from scripts. These commands are generally
> referred to as 'plumbing' commands, and the more user-friendly
> commands are called 'porcelain' commands."
Mnemonics: "plumbing" are hidden 'guts' of git (the engine / backend
part).
Show 8 quoted lines
> It feels like 'porcelain' means: "be careful, things break easily";
> and 'plumbing' means: "use all the force you want to get it into (a
> user-friendly) shape".
> 
> Second, to me it is not totally clear which strings are plumbing and
> which ones are porcelain. Is there a general rule to tell ? The
> command-list file says what the general intention of a command is, but
> often it's both plumbing as porcelain.
"Porcelain" commands are those that are facing user (as is "porcelain"
in armature), so they might be changed to make it more user friendly.
 
"Plumbing" command output is to be consumed by other commands and
scripts, so it must be 'cast in stone' and cannot be changed.  It is
meant to be easily machine-parseable, and not to be user friendly.
> Can anyone help me out here ?
HTH
-- 
Jakub Narebski
Previous: Vincent van RavesteijnNext: Vincent van Ravesteijn
Message 8 of 10 in “Unify the style of user messages”
  1. 0/2 Unify the style of user messagesVincent van Ravesteijn, Mar 19, 2012
  2. 1/2 Unification of user message stringsVincent van Ravesteijn, Mar 19, 2012
  3. Junio C HamanoMar 19, 2012
  4. Vincent van RavesteijnMar 19, 2012
  5. Jeff KingMar 19, 2012
  6. Junio C HamanoMar 19, 2012
  7. Vincent van RavesteijnMar 20, 2012
  8. Jakub NarebskiMar 20, 2012
  9. Vincent van RavesteijnMar 20, 2012
  10. 2/2 Make some strings translatableVincent van Ravesteijn, Mar 19, 2012

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.