Git Product home page Git Product logo

gitpatcher's Introduction

gitpatcher

gitpatcher is a Gradle plugin that can manage patches for Git repositories for you (example). This is useful if you need a few smaller changes for a Git repository that can't be contributed upstream, but you still easily want to keep up to date with upstream. gitpatcher manages a local submodule as base, and applies patches from a configurable folder in an extra repository. A local Git installation on the PATH is required for it to run.

Installation

  1. Add a submodule for the project you want to patch.
  2. Apply gitpatcher to your Gradle project:
plugins {
    id 'net.minecrell.gitpatcher' version '0.9.0'
}
  1. Configure gitpatcher:
patches {
    // The submodule path you just created
    submodule = 'upstream'
    // The target folder for the patched repositories
    target = file('target')
    // The folder where the patches are saved
    patches = file('patches')
}
  1. That's it! Now you can initialize your repository (see below) and start making commits to it. Then just make the patches and you can apply it to the target repository as often as you want.

Tasks

Name Description
updateSubmodules Initializes the submodule and updates it if it is outdated.
applyPatches Initializes the target repository and applies the patches from the patch folder.
makePatches Creates or updates the patches in the patch folder.

gitpatcher's People

Contributors

covers1624 avatar jamierocks avatar lexmanos avatar stephan-gh avatar zml2008 avatar

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.