I am trying to find all the lines of code within the current git diff that have been deleted (in the unstaged changes) using the ruby gem grit, i.e. I ...
I am trying to find all the lines of code within the current git diff that have been deleted (in the unstaged changes) using the ruby gem grit, i.e. I ...
Gift is a node.js library that implements grit like functionality. To view remote branches, ordinarly I would do git branch -r, but I don't see any su ...
I'm looking for some code examples, for either rugged or grit, showing how to do a git push. Background I have rake tasks deploy:staging and deploy: ...
I'm trying to create a basic GIT web UI for GIT bare repos which allows edit (only) of existing files. For example, considering these two cases: ...
I would like to compare 2 branches and show the commits that exist in one but not the other. This works from command line git log --pretty=oneline bra ...
I'd like to be able to tell between two Grit::Commit objects, which is newer. What I mean by newer is that if commit_A is a parent (or parent of a par ...
To implement github like fork/pull request function in my project, the auto-merge feature need to detect conflict between source/target repository eve ...
I'm trying to do a very simple thing: Read a diff from a git repo via the ruby gem Grit. I'm creating a file and adding the line "This is me changing ...
I'm using Grit in my rails app and I'm creating a commit which i know works: then, im trying to get the blobs which is showing up empty: What am ...
I have tried the last day to work with the Ruby gem git (version 1.2.5), but I am not sure that it works well enough. I stumbled over grit, which is m ...
When I use rails c, I could type repo = Grit::Repo.name("/path/path") and there is no error. But when I type these in my rails controller, there is a ...
I have a tree of commit found by SHA-1,code is: tree = repo.tree(sha) now I need to find blob by file name and display its content ...
How do you display the commit content specified with SHA-1 in a Ruby on Rails application? ...
I'm fairly confident this is either not possible or I'm missing an obvious option, but after consulting grit's Git class, the gist linked in this SO p ...
I have a small application that manages several git repositories similar to Github/Gitorious. Github allows for inline file editing, and I'd like to k ...
I'm learning grit (version 2.4.1). Here is my basic code: Running this code gave me a lot of warnings. This GitHub diff, as pointed out by user @Do ...
Working on a ruby/git project using Grit, but I'm unable to update my submodules programmatically. I figured out how the missing_method function maps ...
How can I download a file (or clone the repo) from a secure Git Repo (e.g. SSH on GitHub), then commit changes back to the repo using Ruby Grit? Thank ...
I have a few questions about Grit/Git that I hope you can help me with. Here's my code: With this code I'm trying to create a repo, commit twice to ...
Is there a way to create a branch in a repo using Grit? I can't seem to find a way in the docs nor is there any reference I can find on the web. ...