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

Re: [PATCH v2] glossary: add definition for overlay

From
Thomas Gummerer <t.gummerer@gmail.com>
Date
Mar 15, 2019, 23:10 UTC
Message-ID
<20190315231054.GK16414@hank.intra.tgummerer.com>
In-Reply-To
<xmqq5zsnh7my.fsf@gitster-ct.c.googlers.com>
On 03/13, Junio C Hamano wrote:
Show 24 quoted lines
> Thomas Gummerer <t.gummerer@gmail.com> writes:
> 
> > diff --git a/Documentation/glossary-content.txt b/Documentation/glossary-content.txt
> > index 023ca95e7c..53df6ecb0a 100644
> > --- a/Documentation/glossary-content.txt
> > +++ b/Documentation/glossary-content.txt
> > @@ -287,6 +287,13 @@ This commit is referred to as a "merge commit", or sometimes just a
> >  	origin/name-of-upstream-branch, which you can see using
> >  	`git branch -r`.
> >  
> > +[[def_overlay]]overlay::
> > +	Only update and add files to the working directory, but don't
> > +	delete them, similar to how 'cp -R' would work.  This is the
> > +	default mode in a <<def_checkout,checkout>>.  In contrast,
> > +	no-overlay mode will also delete tracked files not present in
> > +	the source, similar to 'rsync --delete'.
> > +
> 
> At least the mention of "checkout" needs to be a lot tightened to
> clarify that it is talking about "checkout <pathspec>", aka
> "checking out files out of the index or a tree-ish", as opposed to
> "checking out a branch to work on it", as checking out a branch will
> not work in the overlay fashion.  What's not in the newly checked
> out branch will disappear from the working tree.
Good point, I'll fix that in v3.
Show 6 quoted lines
> If readers happen to be not paying close attention to the fact that
> the difference between overlay and non-overlay is about the
> destination, "similar to how 'cp -R' would work" may not click to
> their minds.  "similar to how 'cp -R' updates the contents in the
> destination directory" may avoid such a risk, albeit it might be a
> bit too verbose.  I dunno.

I feel like it's okay to be a bit more verbose in the glossary. I think your suggestion above is better than what I had, I'll use that in v3, thanks!

Previous: Junio C HamanoNext: Thomas Gummerer
Message 17 of 31 in “What's cooking in git.git (Mar 2019, #01; Wed, 6)”
  1. Junio C HamanoMar 6, 2019
  2. Denton LiuMar 6, 2019
  3. Junio C HamanoMar 6, 2019
  4. Jeff KingMar 6, 2019
  5. Junio C HamanoMar 6, 2019
  6. Duy NguyenMar 6, 2019
  7. Junio C HamanoMar 6, 2019
  8. Philip OakleyMar 7, 2019
  9. Duy NguyenMar 7, 2019
  10. Thomas GummererMar 9, 2019
  11. Elijah NewrenMar 9, 2019
  12. Thomas GummererMar 10, 2019
  13. glossary: add definition for overlayThomas Gummerer, Mar 12, 2019
  14. Duy NguyenMar 13, 2019
  15. Thomas GummererMar 15, 2019
  16. Junio C HamanoMar 13, 2019
  17. Thomas GummererMar 15, 2019
  18. glossary: add definition for overlayThomas Gummerer, Mar 17, 2019
  19. Philip OakleyMar 21, 2019
  20. Junio C HamanoMar 22, 2019
  21. Thomas GummererMar 28, 2019
  22. Junio C HamanoMar 8, 2019
  23. Johannes SchindelinMar 6, 2019
  24. Junio C HamanoMar 18, 2019
  25. Johannes SchindelinMar 6, 2019
  26. Junio C HamanoMar 6, 2019
  27. Johannes SchindelinMar 6, 2019
  28. ps/stash-in-c, was Re: What's cooking in git.git (Mar 2019, #01; Wed, 6)Johannes Schindelin, Mar 6, 2019
  29. Junio C HamanoMar 6, 2019
  30. Jonathan TanMar 6, 2019
  31. Junio C HamanoMar 7, 2019

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.