Code Monkey home page Code Monkey logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
I couldn't reproduce this. What do the first few entries in that log file look 
like?

Original comment by [email protected] on 19 Oct 2014 at 3:29

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
[deleted comment]

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
*** *** ***
user:IJoshFTW
1413636011
:000000 100644 0000000... 1904319... A  README.md

user:Joshua Slik
1413636927
:000000 100644 0000000... 985fafe... A  index.html

user:Joshua Slik
1413637202
:100644 100644 985fafe... 830f2ae... M  index.html
:000000 100644 0000000... f8c5a98... A  index2.html

user:Joshua Slik
1413637305
:100644 100644 830f2ae... 58e3e18... M  index.html
*** *** ***

File contents are between asterisk rows.
Full file attached.

Original comment by [email protected] on 19 Oct 2014 at 4:56

Attachments:

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
The file you attached seems to have some slightly funny character encoding 
(UTF-16?). Gource is expecting a UTF-8.

Possibly when you piped it (>) to the log file your command prompt turned it 
into UTF-16.

Original comment by [email protected] on 19 Oct 2014 at 5:48

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
I am using PowerShell 4.0 (Win 8.1 x86_64).
I am not familiar with it, do you know where I van change the character 
encoding?

Original comment by [email protected] on 19 Oct 2014 at 5:52

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Did some testing, here are the results:

git log --pretty=format:user:%aN%n%ct --reverse --raw --encoding=UTF-8 
--no-renames | Out-File -Encoding Unicode log.gourcelog
> [No output, successful command]
gource log.gourcelog
> Unsupported log format (As expected, because this is UTF16, the default 
output)

git log --pretty=format:user:%aN%n%ct --reverse --raw --encoding=UTF-8 
--no-renames | Out-File -Encoding UTF8 log.gourcelog
> [No output, successful command]
gource log.gourcelog
> Unsupported log format (Huh? I thought it was expecting UTF8?)

So I decided to push on

git log --pretty=format:user:%aN%n%ct --reverse --raw --encoding=UTF-8 
--no-renames | Out-File -Encoding UTF7 log.gourcelog
> [No output, successful command]
gource log.gourcelog
> [Gource runs]

Ok what...?

If git gives it as UTF 8 and I save it as UTF 7, it runs with no problem.

Original comment by [email protected] on 19 Oct 2014 at 7:22

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
It also won't work if there is a byte-order-marker (BOM) at the start of the 
file, it looks like that Out-File command line will include a BOM.

You can use 'gource --output-custom-log custom.log' to save a copy of the log 
file read by gource from git and then use that. Or use regular command prompt 
to save the git log.

Original comment by [email protected] on 19 Oct 2014 at 10:04

from gource.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024

Original comment by [email protected] on 15 Dec 2014 at 4:06

  • Changed state: Done

from gource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.