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

3 messages from 2007-01-13 to 2007-01-15. Participants: Horst H. von Brand.
Thread: https://gitlist.dev/t/6364

## Horst H. von Brand, 2007-01-13 22:04

Subject: Re: Importing from tarballs; add, rm, update-index?
Message-ID: <200701132204.l0DM4jpE010938@laptop13.inf.utfsm.cl>
URL: https://gitlist.dev/e/200701132204.l0DM4jpE010938%40laptop13.inf.utfsm.cl
In-Reply-To: <spearce@spearce.org>

```
Shawn O. Pearce <spearce@spearce.org> wrote:
> "Horst H. von Brand" <vonbrand@inf.utfsm.cl> wrote:
> > 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...
> 
>   echo \*.class >>.gitignore
>   echo \*.o >>.gitignore
>   git add .gitignore
> 
> doesn't work for some reason?

Because each time I build a bit of scaffolding, or have a new test output,
or... I'd have to add them to .gitignore. I'd very much prefer tracking
real contents and not junk.
-- 
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

```

## Horst H. von Brand, 2007-01-14 23:49

Subject: Re: Importing from tarballs; add, rm, update-index?
Message-ID: <200701142349.l0ENnUk9009229@laptop13.inf.utfsm.cl>
URL: https://gitlist.dev/e/200701142349.l0ENnUk9009229%40laptop13.inf.utfsm.cl
In-Reply-To: <spearce@spearce.org>

```
Shawn O. Pearce <spearce@spearce.org> wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > You mean, you _ignored_ the text "git commit -a" gives you? It really 
> > shows you the output of "git status", exactly so you know what you 
> > committed, and sometimes more importantly, what you didn't.

> Because I'm a moron and forgot what files I had created recently.
> Consequently I don't see them missing from the output of git commit.
> Consequently I think the commit is OK.  :-)

That can't be fixed by software... better get the habit of "git add"ing new
files ASAP.
-- 
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

```

## Horst H. von Brand, 2007-01-15 12:37

Subject: Re: Commit signing
Message-ID: <200701151237.l0FCbOYK007378@laptop13.inf.utfsm.cl>
URL: https://gitlist.dev/e/200701151237.l0FCbOYK007378%40laptop13.inf.utfsm.cl
In-Reply-To: <spearce@spearce.org>

```
Shawn O. Pearce <spearce@spearce.org> wrote:
> Andy Parkins <andyparkins@gmail.com> wrote:

[...]

> > The more I think about it, the more it could be a reasonable question.
> > In my own repository I can obviously create whatever commits i like,
> > claiming them to be from whomever I like just by altering a few config
> > settings.  If I put a few of those in my own repository and then
> > managed to persuade Junio to pull from me - wouldn't I have faked
> > commits from another developer? However, I wouldn't be able to fake a
> > gpg signature.

[...]

> What I'm actually doing in one particular environment is checking
> the committer string against a database of known committer strings
> associated with the current UNIX uid.  My update hook[*1*] performs
> a `git log --pretty=raw $3 --not --all` query to determine any
> commits which are coming in as part of this push and which are not
> already referenced by an existing head or tag in this repository.
> For each of those the committer line *must* match one stored in
> the allowed-committers file for the current user, as these are
> brand new commits being introduced to the repository.

This only covers the "pure star" (centralized, CVS-like) topology: Each one
only pushes their own changes, nobody collects changes from others and
pushes the sum.
-- 
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

```
