git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Interactive rebase encoding
@ 2008-12-15 12:42 Constantine Plotnikov
  2008-12-15 15:13 ` Miklos Vajna
  2008-12-15 15:54 ` Johannes Schindelin
  0 siblings, 2 replies; 5+ messages in thread
From: Constantine Plotnikov @ 2008-12-15 12:42 UTC (permalink / raw)
  To: git

The interactive rebase command builds a text file and passes it to
editor specified as environment variable or as configuration
parameter. However the man page for rebase operation says nothing
about which encoding will be used for that file. Apparently
i18n.logoutputencoding is used. I think that the man page for rebase
operation should explicitly specify it.

Also it might make sense to use explicit encoding parameter for
interactive rebase operation.

Constantine

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interactive rebase encoding
  2008-12-15 12:42 Interactive rebase encoding Constantine Plotnikov
@ 2008-12-15 15:13 ` Miklos Vajna
  2008-12-15 15:54 ` Johannes Schindelin
  1 sibling, 0 replies; 5+ messages in thread
From: Miklos Vajna @ 2008-12-15 15:13 UTC (permalink / raw)
  To: Constantine Plotnikov; +Cc: git

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

On Mon, Dec 15, 2008 at 03:42:08PM +0300, Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:
> The interactive rebase command builds a text file and passes it to
> editor specified as environment variable or as configuration
> parameter. However the man page for rebase operation says nothing
> about which encoding will be used for that file. Apparently
> i18n.logoutputencoding is used. I think that the man page for rebase
> operation should explicitly specify it.

Care to send a patch?

> Also it might make sense to use explicit encoding parameter for
> interactive rebase operation.

Do you have a use-case where having a different encoding for log output
and rebase -i todo list makes sense?

Thanks.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interactive rebase encoding
  2008-12-15 12:42 Interactive rebase encoding Constantine Plotnikov
  2008-12-15 15:13 ` Miklos Vajna
@ 2008-12-15 15:54 ` Johannes Schindelin
  2008-12-15 16:21   ` Constantine Plotnikov
  1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2008-12-15 15:54 UTC (permalink / raw)
  To: Constantine Plotnikov; +Cc: git

Hi,

On Mon, 15 Dec 2008, Constantine Plotnikov wrote:

> The interactive rebase command builds a text file and passes it to 
> editor specified as environment variable or as configuration parameter. 
> However the man page for rebase operation says nothing about which 
> encoding will be used for that file. Apparently i18n.logoutputencoding 
> is used.

As rebase -i does nothing else than piping the output of git log into a 
file (at least this is the first step), I thought it would be obvious that 
it uses the output encoding preferred by the user.

Indeed, I cannot think of any scenario where it might make sense to have a 
different encoding in git rebase -i than in git log.

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interactive rebase encoding
  2008-12-15 15:54 ` Johannes Schindelin
@ 2008-12-15 16:21   ` Constantine Plotnikov
  2008-12-15 16:56     ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Constantine Plotnikov @ 2008-12-15 16:21 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

On Mon, Dec 15, 2008 at 6:54 PM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Mon, 15 Dec 2008, Constantine Plotnikov wrote:
>
>> The interactive rebase command builds a text file and passes it to
>> editor specified as environment variable or as configuration parameter.
>> However the man page for rebase operation says nothing about which
>> encoding will be used for that file. Apparently i18n.logoutputencoding
>> is used.
>
> As rebase -i does nothing else than piping the output of git log into a
> file (at least this is the first step), I thought it would be obvious that
> it uses the output encoding preferred by the user.

Yes. That was my first hypothesis, but I had to check it through small
experiment and source code examination. And if consider the bug
described in the thread
http://kerneltrap.org/mailarchive/git/2008/11/11/4063184, the
hypothesis might have been incorrect.

>
> Indeed, I cannot think of any scenario where it might make sense to have a
> different encoding in git rebase -i than in git log.
>

For IDE, it might make sense to force UTF-8 encoding instead of using
currently configured logoutputencoding. Currently the extra call to
git config is needed to check expected encoding of the file before
data could be shown to the user. Also user specified encoding might
fail to display some characters in commit messages that was encoded
using other encodings, forcing UTF-8 would have also fixed this
problem as well.

BTW for IDEs an option that causes non-abbreviated commit hashes would
have been useful as well.

Constantine

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interactive rebase encoding
  2008-12-15 16:21   ` Constantine Plotnikov
@ 2008-12-15 16:56     ` Johannes Schindelin
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2008-12-15 16:56 UTC (permalink / raw)
  To: Constantine Plotnikov; +Cc: git

Hi,

On Mon, 15 Dec 2008, Constantine Plotnikov wrote:

> On Mon, Dec 15, 2008 at 6:54 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> >
> > Indeed, I cannot think of any scenario where it might make sense to 
> > have a different encoding in git rebase -i than in git log.
> 
> For IDE, it might make sense to force UTF-8 encoding instead of using 
> currently configured logoutputencoding.

I consider rebase -i to be porcelain, and as such not suitable to be used 
as a backend for an IDE.  Help the git-sequencer effort if you want a 
plumbing.

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-15 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 12:42 Interactive rebase encoding Constantine Plotnikov
2008-12-15 15:13 ` Miklos Vajna
2008-12-15 15:54 ` Johannes Schindelin
2008-12-15 16:21   ` Constantine Plotnikov
2008-12-15 16:56     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).