ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] git-commit одиночных файлов
Date: Sun, 3 Dec 2006 21:58:17 +0300
Message-ID: <20061203185817.GA11251@localhost.localdomain> (raw)
In-Reply-To: <20061203185232.GB7971@procyon.home>

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

On Sun, Dec 03, 2006 at 09:52:32PM +0300, Sergey Vlasov wrote:

SV> Значит, файлы были не просто изменены - для них вызывался
SV> git-update-index.

Да, это так. Вернее вызывался git commit -a с последующим отказом от
commit'а (что, как я понимаю, означает всего лишь вызов git-update-index
для всех измененных файлов).

 SV> Только что аналогичная ситуация обсуждалась в рассылке git:
 SV> http://thread.gmane.org/gmane.comp.version-control.git/33117/
 SV> Чтобы избавиться от мешающих изменений индекса, можно просто выполнить
 SV> команду "git reset" (без дополнительных параметров и опций эта команда
 SV> сбрасывает только индекс в состояние, соответствующее последнему
 SV> коммиту, но не меняет сами файлы в рабочей копии).

Ясно, спасибо.

 SV> Можно также сбросить индекс только для тех файлов, которые нужно
 SV> закоммитить отдельно:
 SV> git ls-tree HEAD -- that-file | git update-index --index-info
 SV> git commit that-file
 SV> Возможно, в последующей версии git эта проверка будет совсем удалена
 SV> из git-commit - сейчас она там есть только по той причине, что
 SV> некоторое время назад поведение git-commit при указании списка файлов
 SV> менялось.

Не понял. Как вел себя git-commit при указании списка файлов раньше, и как
будет вести себя теперь?

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
У меня специализация -- мелкий хакинг по месту
		-- mike in devel@


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-12-03 18:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03 18:08 Денис Смирнов
2006-12-03 18:52 ` Sergey Vlasov
2006-12-03 18:58   ` Денис Смирнов [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=20061203185817.GA11251@localhost.localdomain \
    --to=mithraen@altlinux.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git