Skip to content

Add script and documentation for minimizing patches #3462

Closed

Description

@code-asher

We can see the differences between code-server and VS Code with something like this (will have to be tweaked to work in all cases):

#!/usr/bin/env bash
set -euo pipefail

main() {
  cd "$(dirname "$0")/../.."

  local upstream=$1 ; shift
  local main=$1 ; shift

  git diff "$upstream" "$main" --name-only \
    | grep -v 'yarn.lock$' \
    | grep -v '^src/typings/' \
    | xargs git diff "$upstream" "$main" --
}

main "$@"

Example usage:

./diff.bash vscode/release/1.57 origin/main:lib/vscode

So I'm thinking we should make this part of the upgrade process to ensure we don't have differences we shouldn't (currently we do, probably somehow happened in the various squashes) and to help us keep tabs on what we've actually changed. There are changes we've made here that we can move out or refactor to minimize future conflicts.

Activity

  1. added
    chore
    on May 24, 2021
  2. modified the milestones: On Deck, 3.11.0 on May 24, 2021
  3. modified the milestones: 3.11.0, 3.12.0 on Jul 19, 2021
  4. modified the milestones: 3.12.0, On Deck on Aug 11, 2021
  5. stale commented on Feb 7, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

  6. jsjoeio commented on Feb 7, 2022

    @jsjoeio
    Contributor

    Not stale

  7. modified the milestones: On Deck, March 2022 on Mar 22, 2022
  8. self-assigned this
    on Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chore

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions