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

Re: Importing from tarballs; add, rm, update-index?

From
Horst H. von Brand <vonbrand@inf.utfsm.cl>
Date
Jan 13, 2007, 21:41 UTC
Message-ID
<200701132141.l0DLfWkG010141@laptop13.inf.utfsm.cl>
In-Reply-To
<alan@chandlerfamily.org.uk>
Alan Chandler <alan@chandlerfamily.org.uk> wrote:
[...]
Show 17 quoted lines
> My (albeit limited) experience with using git is at home coding a java 
> application for my web site using eclipse.  During the application 
> development when I am initially coding the application, or when I am 
> doing a major update that adds new pages to my site then I have to 
> remember to git add files.  My immediate instinct is do do commands of 
> the form
> 
> git add 
> Javasource/uk/org/chandlerfamily/appname/tapestry/pages/subdir/xxx.java
> 
> and
> git add Webcontent/subdir/xxx.html
> 
> which even with bash completion is a pain to enter.
> 
> (although that is probably harder than it needs to be - can't I just do 
> git add . ?)
That's different...
Show 5 quoted lines
> I don't know whether we have had the debate here - if we have done it 
> would have been in the very very early days, but subject to 
> the .gitignore rules what would be the implications of a git commit -a 
> that automatically adds any files within the directory (and 
> subdirectories) in which it is issued.

Please don't. It would add e.g. the .class and .o and all ~ files, and all other junk you have lying around (test cases, test run output, ...). It isn't /that/ much more work after creating a new file to record its existence...

> I am (at the moment - but I am good at changing my mind) in the side of 
> giit add for both adding new paths and updating content.  This is 
> purely  pragmatic - don't have to remember which one I am trying to do.

Me too. It's just a bit weird to use it to register the fact that a file is gone.

-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513
Previous: Horst von BrandNext: Shawn O. Pearce
Message 12 of 13 in “Re: Newbie falls at first hurdle”
  1. Horst von BrandSep 18, 2005
  2. Martin LanghoffSep 18, 2005
  3. Alan ChandlerSep 18, 2005
  4. Junio C HamanoSep 18, 2005
  5. Linus TorvaldsSep 18, 2005
  6. Junio C HamanoSep 18, 2005
  7. Alan ChandlerSep 18, 2005
  8. Junio C HamanoSep 18, 2005
  9. Sven VerdoolaegeSep 19, 2005
  10. Martin LanghoffSep 18, 2005
  11. Horst von BrandOct 3, 2005
  12. Horst H. von BrandJan 13, 2007
  13. Shawn O. PearceJan 13, 2007

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.