Skip to main content

Find conflicted files between two branches.

Project description

Merge base conflicts

Information

  • This is a python library that helps you find files that were changed in both branchA and branchB.

Usage

  • Inside the library there are many functions made for the functionality to work and be clean
  • The main function you should be using is find_conflicts(...)

find_conflicts()

  • The function accesses GitHub repository from GitHub REST API and finds the branchA
  • Goes through the local repository to find the branchB
  • Compares the two branches since their merge base and returns the conflicted files

Parameters

  1. repo_owner - username of GitHub user whose repository you will be finding conflicts in
  2. repo_name - name of the repository
  3. access_token - if the repository is empty the library needs token for authentication
  4. local_repo_path - path to the cloned repository where local branch is located
  5. branch_a - remote branch name on GitHub
  6. branch_b - local branch name

Return value

  • A list of strings (names of conflicted files)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

branchconflicts-0.1.6.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

branchconflicts-0.1.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file branchconflicts-0.1.6.tar.gz.

File metadata

  • Download URL: branchconflicts-0.1.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for branchconflicts-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d0be04b184a69ae81779356575fe1559c025c6bb16aa75a9e5d58f078a6931c7
MD5 122c470c4124beeb2f7b355d5ac5c32c
BLAKE2b-256 22eea9c2ebb3a5a07bb31562a8ec7b843cf681c6b193fdb5cffc317f62f6780a

See more details on using hashes here.

File details

Details for the file branchconflicts-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for branchconflicts-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9b10f282acf9a12b30c824b0f8509ac133a0685dd21f17416f1f235aa9ea50
MD5 a3f3f0f0166123b15532a566539a612d
BLAKE2b-256 15f301ee3980e0033299ef21dc6bb47e504a1ccf367a60e9f874cd9a67c30e65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page