GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CadixDev/gitpatcher: A Gradle plugin to manage patches for Git repositories

BranchesTags
Open more actions menu

Latest commit

 

History

56 Commits
56 Commits

Folders and files

NameName
Last commit message
Last commit date
gradle/wrapper
gradle/wrapper
 
 
src/main/groovy/org/cadixdev/gradle/gitpatcher
src/main/groovy/org/cadixdev/gradle/gitpatcher
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

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.

About

A Gradle plugin to manage patches for Git repositories

Topics

gradle-plugin

Resources

Readme
MIT license
Activity
Custom properties

Stars

22 stars

Watchers

3 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.