GithubHelp home page GithubHelp logo

devatherock / git-sync Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 124 KB

CI plugin to sync the contents of a git repository with another

License: MIT License

Dockerfile 2.07% Groovy 85.49% Shell 10.04% Makefile 2.40%
circleci ci ci-cd sync plugin docker drone-ci drone-plugin vela circleci-plugin

git-sync's Introduction

simple-yaml kafka-lag-monitor
velocity-template-tester email-sender

git-sync's People

Contributors

devatherock avatar mend-bolt-for-github[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

git-sync's Issues

Add support for another sync mode

Problem:
Sync fails when there had been any conflict resolution done in the source branch without using rebase

Solution:
Use cherry-pick as the default sync mode which will continue doing what the current code does. Introduce a sync mode that works by merging the contents of modified files. Call it file-merge. Find files modified in a commit using command git diff-tree --no-commit-id -r <commitSha>. The output of the command looks like below:

:100644 100755 772e30bf04d0b60b12ce56057dc68067f3902ff3 772e30bf04d0b60b12ce56057dc68067f3902ff3 M	path/to/file.sh

The fields are old file mode, new file mode, old file hash, new file hash, the type of change(A/M/D - Added/Modified/Deleted) and path to file. When only file mode has changed, old file hash and new file hash will be the same

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.