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

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

From
Thomas Gummerer <t.gummerer@gmail.com>
Date
Mar 28, 2019, 21:05 UTC
Message-ID
<20190328210500.GH32487@hank.intra.tgummerer.com>
In-Reply-To
<xmqqbm23qzj8.fsf@gitster-ct.c.googlers.com>
On 03/22, Junio C Hamano wrote:
Show 8 quoted lines
> Philip Oakley <philipoakley@iee.org> writes:
> 
> >> of 'cp -R'.  I thought of making the same clarification for 'rsync
> >> --delete' as well, however I think with it being explicitly specified
> >> for 'cp -R', readers should be able to deduce that we are talking
> >> about the destination directory there as well.
> > As a historically Windows user, we should ensure that the meaning is
> > clear to all without the otherwise helpful *nix command examples.

Sure, it would definitely be good to be clear to users of all platforms. Is the text by itself not understandable enough? If not do you have any suggestions to improve it?

I think giving the example of 'cp -R' is still good, even if not all Windows users are familiar with it, as it's supposed to provide some additional context. But it's only an additional example, the sentence is supposed to be understandable either way. Would there be a similar command for Windows that could be used as an example?

Show 11 quoted lines
> I do not know about "cp -R", but surely "rsync" is used by Windows
> users as well as users of Unix based systems, isn't it?
> 
> >> +	Only update and add files to the working directory, but don't
> >> +	delete them, similar to how 'cp -R' would update the contents
> 
> > perhaps  s/them/any files/
> 
> Probably.  The paths that are not deleted are certainly different
> set of paths from those that are updated and/or added, so it sounds
> like a reasonable thing to do.
Thanks, will update this.
Show 22 quoted lines
> >> +	in the destination directory.  This is the default mode in a
> >> +	<<def_checkout,checkout>> when checking out files from the
> >> +	<<def_index,index>> or a <<def_tree-ish,tree-ish>>.  In
> >> +	contrast, no-overlay mode also deletes tracked files not
> >
> > understanding the past/future distinction is tricky here. Maybe
> > 'deletes previously tracked files that are no longer present in the
> > new source'.
> >
> > It's tricky talking about deleting things that are not there.
> 
> I am afraid that "previously" may be taken too literally by readers
> and misunderstood as paths that had been tracked even once in the
> past.  
> 
> If you think that is worried too much because we can only delete
> what is _currently_ in the index, and any past before what is in the
> current index cannot ever affect the outcome, the same reasoning
> tells me that the original is clear enough without "previously",
> i.e. "tracked ones not present in..." are the ones that are in the
> index currently, but the tree that we are taking new contents from
> does not have them.

Agreed, I think I prefer the current version over the suggested change here too.

> I dunno.
> 
> >> +	present in the source, similar to 'rsync --delete'.
Previous: Junio C HamanoNext: Junio C Hamano
Message 21 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.