dev-charts's Issues
Replace the second timestamp from patch files
Example:
The second timestamp in patch files generated from make patch
introduces a ton of new changes per commit that are unrelated to the actual change that needs to be reviewed.
Issues
- A PR with several commits such as #29 introduces a large number of changes between commits that purely come from timestamp changes (i.e. modifying
2020-07-19 21:58:02.000000000 -0700
to2020-07-20 00:18:18.000000000 -0700
). As a result, the PR becomes difficult to review for a reviewer as they need to filter through all of the timestamp changes in the patch file to find the actual code changes that have been made. - Rebasing patch changes within a single PR that is bumping the package version involves re-running the
make patch
command several times for each commit and encountering several Git conflicts related to timestamp changes. For example, if I have 3 commits and I make a change incommit 1
(i.e. rebase, pickcommit 1
, runmake prepare
, make the change necessary, and runmake patch
), all of the timestamps fromcommit 1
will change to the current time. This results in several merge conflicts when applyingcommit 2
ontocommit 1
, and similarly when applyingcommit 3
tocommit 2
.
Proposed solution
On make patch
:
- Replace the timestamp printed by the diff with
<package-name>_<package-version>
instead. This will introduce changes to all existing patches within the dev-charts repo.
On make prepare
:
- Replace the
<package-name>_<package-version>
with the current unix timestamp before applying the diff to ensure that the patch step still works as expected.
Once this change is applied, any changes to the chart that necessitate a package version bump would first need to have a commit that just updates the chart version and regenerates the patch followed by the actual changes introduced into the chart for the new version in separate commits.
Alternate solution
Remove timestamps altogether from the patches.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.