GithubHelp home page GithubHelp logo

mike-perdide / gitbuster Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 0.0 916 KB

PyQt4 frontend for git filter-branch/git cherry-pick.

License: GNU General Public License v3.0

Shell 3.42% Python 85.82% C++ 10.54% Prolog 0.22%

gitbuster's Introduction

gitbuster II

Formerly qGitFilterBranch.

" If there's something strange / In your history / Who you gonna call ? / GitBuster! "

Frontend for git cherry-pick/git rebase:

  • use drag and drop to rebase a branch onto another (one or a set of commits)
  • graphical resolution of merge conflicts by displaying:
    • the original content of the file
    • the patch that was meant to be applied but failed
    • the unmerged content of the file for you to edit if necessary
    • a set of resolution choices (delete the file, add the file, add the file with custom content)
  • works with remote branches (directory on your filesystem or web)
  • rename a branch or create a new branch from any commit of your history
  • special conflicts mode that can be called right after a conflict when using 'git rebase -i'

Frontend for git filter-branch:

  • use filters to display only the commits matching
    • committed before/after a date (e.g. commits before 01/01/11)
    • committed before/after a weekday (e.g. commits after friday)
    • committed before/after an hour (e.g. commits after 20:00)
    • the log message contains some string (e.g. matching "CHANGEME")
    • the user/email contains some string (e.g. matching "wrong.email@")
  • edit the displayed commits to change
    • the authored/committed date
    • the author/committer name and email
    • the log message
  • change multiple values at once
  • automatically re-order a given set of commits onto a given set of time ranges

Safe try

With the demo.sh you can try gitbuster in a safe environment. The script will check that all dependencies are met and install GitPython in a virtualenv. That way it won't interfere with your system packaging tools (like apt).

Installing From PyPI

Installing with pip:

$ pip install gitbuster

Note: here we're talking about the Python package installer (http://guide.python-distribute.org/pip.html).

Manual Installation

Get the code:

$ git clone --recursive git://github.com/mike-perdide/gitbuster.git
$ cd gitbuster

Installing

$ make install

Building From Sources

Dependencies:

  • pyuic4: on debian/ubuntu systems, look for a package named 'pyqt4-dev-tools'.
  • gcc: on most systems, look for a package named 'gcc'.
  • make: on most systems, look for a package named 'make'.
  • gfbi_core: see https://github.com/mike-perdide/gfbi_core.
  • GitPython

To build gitbuster UI files:

$ cd gitbuster/
$ make

To launch gitbuster:

$ export PYTHONPATH=$PYTHONPATH:<path_to_>/gitbuster
$ cd gitbuster
$ ./gitbuster

Bugs

There are bugs in gitbuster, especially in:

  • dealing with some unicode commit metadata
  • cherry-picking big commits (+10 modified files) may result in gitbuster being blocked

If you find any bug, don't hesitate to report it and/or send patches:

Please mention the version you're using, or the tip of the repository if you're using the development version, and the steps to reproduce. Your help will be greatly appreciated.

Warning

As of v2.1, gitbuster now handles merge commits correctly instead of deleting them as "git rebase -i" would. You can modifiy metadata of an old commit without worrying that it would mess up your history tree. However, you should be careful when reordering commits in a non flat history, as gitbuster doesn't display correctly the branched histories. The rule of thumb is that inserting a commit in a branch will take the commit below in the tableView as reference: the inserted commit inserted will take its place, and the reference commit will become the inserted commit's parent. All commits that had the reference commit has parent will now have the inserted commit as parent.

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.