Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Diff::a_path is wrong for unicode characters #1099

Closed
@marxin

Description

@marxin

The problem is slightly mentioned in#865.

Let's consider the following example:

git init foocd ./fooecho a> agit add agit commit -a -m'Add a'echo"foo"> špatně.txtgit add špatně.txtgit commit -a -m Add
In [4]:Repo('.').commit().diff('HEAD~')[0].a_pathOut[4]:'"\\305\\241patn\\304\\233.txt"'

Unless one usesgit config --global core.quotepath false, the file name is quoted and I don't see a simple solution how to decode it to unicode? One can use-z option that can resolve the problem:

git diff HEAD~ --raw -z | cat:000000 100644 0000000 257cc56 Ašpatně.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp