Skip to content

How can I stage lines and hunks? #146

Description

@demian85

Hi,

I've been working on a 'git-gui' desktop app. I invite you to take a look: https://github.com/demian85/git-watcher

All the current functionality is provided by native git commands and the git-utils module.

Now, to make it more useful, I would like to implement at least the following features:

Amend commit: I need to show files from previous commit and allow to stage them in a 'sandbox' to avoid modifying the current repository.
Stage by lines and hunks: The same as git-gui.
I've done a bit of research and my conclusion is that there is no way to implement those features without using a native git API.

Can nodegit help me? I couldn't find a clue by looking at the old documentation.

Thanks for your help.

pd: I've asked the same question in the node-gitteh project: libgit2/node-gitteh#71

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions