From: Alexander Potashev <aspotashev@gmail.com>
To: ALT Linux Community general discussions
<community@lists.altlinux.org>,
Eugine Kosenko <eugine.kosenko@gmail.com>
Cc: linux-list <linux-list@linux.kiev.ua>
Subject: Re: [Comm] Можно ли преобразовать кодировку описания коммитов Git?
Date: Tue, 28 Apr 2015 11:43:10 +0300
Message-ID: <CADMG6+9P7v7i5356byg0iK5kRAejt=UcjiRH7yvvaTKtYZohSQ@mail.gmail.com> (raw)
In-Reply-To: <CAB_XSX20DdmiqtOK0fU4vzkGa0zO2eFRZDvsnH9nTgtGoZ6bdw@mail.gmail.com>
28 апреля 2015 г., 8:46 пользователь Eugine Kosenko
<eugine.kosenko@gmail.com> написал:
> В свое время я имел неосторожность при коммитах в Git-репозитории
> создавать описание кириллицей в кодировке CP1251. После перезода на
> UTF-8 читать журналы Git стало совершенно невозможно. Таких коммитов
> очень много, а репозитории достаточно ценные.
>
> Насколько я понял, информация в каталоге .git/logs содержит только
> журналы действий пользователя, и к описанию коммитов никакого
> отношения не имеет. В частности, прямое перекодирование файлов
> .git/logs/HEAD и .git/logs/refs/master никакого эффекта не дало.
>
> Я вижу только один путь: последовательный рекоммит с указанием
> описания в новой кодировке и дальнейший перенос базы для последующих
> коммитов на новую позицию. Так как таких коммитов много, возможно,
> придется воспользоваться скриптингом.
>
> Посему вопрос: может ли эта проблема быть решена другим способом? Есть
> ли инструменты для решения подобных задач?
Евгений,
Вам уже ответили [1], что самый подходящий инструмент -- git
filter-branch. Нет смысла продолжать спамить здесь.
[1] https://www.linux.org.ru/forum/development/11556917
--
Alexander Potashev
next prev parent reply other threads:[~2015-04-28 8:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 5:46 Eugine Kosenko
2015-04-28 8:43 ` Alexander Potashev [this message]
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='CADMG6+9P7v7i5356byg0iK5kRAejt=UcjiRH7yvvaTKtYZohSQ@mail.gmail.com' \
--to=aspotashev@gmail.com \
--cc=community@lists.altlinux.org \
--cc=eugine.kosenko@gmail.com \
--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