Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update git-show recipe #491

Merged
merged 4 commits into from
Feb 13, 2015
Merged

Update git-show recipe #491

merged 4 commits into from
Feb 13, 2015

Commits on Feb 11, 2015

  1. Update git-show recipe

    I couldn't get the diff as shown in the git-show recipe. Therefore
    update it to what I think it should be. Maybe there is a better way.
    
    Also add a section on how to assemble a git show-like message. It took
    me quite some searching in the Python docs to find out how to do it,
    especially the date and time part. So this might save people time. I
    wanted to add something that gives me a git show --stat equivalent, but
    couldn't figure it out.
    rmoehn committed Feb 11, 2015
    Configuration menu
    Copy the full SHA
    c87d28c View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2015

  1. Correct git-show recipe

    Make the diff generation more idiomatic and fix the assembling of the
    timestamp. git-show normally prints the author time, so use this instead
    of the commit time. Also fix how tzinfo is obtained. Of course we have
    to use the author's time zone and not some fixed one as I had written
    before.
    rmoehn committed Feb 12, 2015
    Configuration menu
    Copy the full SHA
    2b2beb8 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2015

  1. Configuration menu
    Copy the full SHA
    69f5398 View commit details
    Browse the repository at this point in the history
  2. git-show recipe: Add the easy Python 3 way

    As @jdavid pointed out, Python 3 already provides a tzinfo subclass for
    fixed UTC offsets. Incorporate this in the recipe. Leave the old code
    with the self-made class, since many people are working with Python 2
    and it is harder to find out there.
    rmoehn committed Feb 13, 2015
    Configuration menu
    Copy the full SHA
    1cb62ab View commit details
    Browse the repository at this point in the history