ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Eugine Kosenko <eugine.kosenko@gmail.com>
To: ALT Linux Community general discussions
	<community@lists.altlinux.org>,
	linux-list <linux-list@linux.kiev.ua>
Subject: [Comm] Можно ли преобразовать кодировку описания коммитов Git?
Date: Tue, 28 Apr 2015 08:46:08 +0300
Message-ID: <CAB_XSX20DdmiqtOK0fU4vzkGa0zO2eFRZDvsnH9nTgtGoZ6bdw@mail.gmail.com> (raw)

В свое время я имел неосторожность при коммитах в Git-репозитории
создавать описание кириллицей в кодировке CP1251. После перезода на
UTF-8 читать журналы Git стало совершенно невозможно. Таких коммитов
очень много, а репозитории достаточно ценные.

Насколько я понял, информация в каталоге .git/logs содержит только
журналы действий пользователя, и к описанию коммитов никакого
отношения не имеет. В частности, прямое перекодирование файлов
.git/logs/HEAD и .git/logs/refs/master никакого эффекта не дало.

Я вижу только один путь: последовательный рекоммит с указанием
описания в новой кодировке и дальнейший перенос базы для последующих
коммитов на новую позицию. Так как таких коммитов много, возможно,
придется воспользоваться скриптингом.

Посему вопрос: может ли эта проблема быть решена другим способом? Есть
ли инструменты для решения подобных задач?

             reply	other threads:[~2015-04-28  5:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28  5:46 Eugine Kosenko [this message]
2015-04-28  8:43 ` Alexander Potashev
2015-04-28 18:33   ` Sergey

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=CAB_XSX20DdmiqtOK0fU4vzkGa0zO2eFRZDvsnH9nTgtGoZ6bdw@mail.gmail.com \
    --to=eugine.kosenko@gmail.com \
    --cc=community@lists.altlinux.org \
    --cc=linux-list@linux.kiev.ua \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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