Git development
 help / color / mirror / Atom feed
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>
To: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-unadd anyone?
Date: Wed, 01 Feb 2006 17:11:00 +0100	[thread overview]
Message-ID: <43E0DD94.6080300@gorzow.mm.pl> (raw)
In-Reply-To: <20060201153823.GB16461@informatik.uni-freiburg.de>

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

Uwe Zeisberger wrote:
> Hello Radoslaw,
> 
> Radoslaw Szkodzinski wrote:
>> Is there an easy way to just unmark files wrongly marked as added?
>>
>> I'm not thinking about something like git-reset --mixed,
>> which would discard the index as a whole.
>> I only want to unmark files I git-add(1)ed.
> How about
> 
> 	git update-index --force-remove <filename>
> 
> 
> Best regards
> Uwe
> 

Thank you, it's exactly what I was looking for.

If I was mad enough, I'd use git-update-index --add instead of git-add.
I'll have to reacquaint with git low-level commands anyway.

It's weird that there's git-add, yet no git-remove.
The only difference is the exclude file handling (not a problem with remove)
and doing global changes when no parameters are given.

Actually, I don't like the second property that much.
I'd prefer an explicit -a for --all. But it's probably for CVS users sake, right?

-- 
GPG Key id:  0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0  9105 9543 0453 D1F1 0BA2

AstralStorm


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

      reply	other threads:[~2006-02-01 16:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-01 15:31 git-unadd anyone? Radoslaw Szkodzinski
2006-02-01 15:38 ` Uwe Zeisberger
2006-02-01 16:11   ` Radoslaw Szkodzinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43E0DD94.6080300@gorzow.mm.pl \
    --to=astralstorm@gorzow.mm.pl \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox