devatherock / git-sync Goto Github PK
View Code? Open in Web Editor NEWCI plugin to sync the contents of a git repository with another
License: MIT License
CI plugin to sync the contents of a git repository with another
License: MIT License
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
Use git log --pretty=oneline -n ${commitLimit} --topo-order
instead of git log --pretty=oneline -n ${commitLimit}
Draft changes in gradle-7 branch
Refer drone-yaml-validator
The machine
executor type allows running docker commands from within tests
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.