0

We are starting to utilize the version control on Azure Devops with the Git Repos.
One topic that was asked is if there is a way to compare directories/branches/folders/repos on Azure Devops, say before deploying to a stage to see what chnages/differences are notable between the environments' directories before committing.

Is there such a tool/task built in that we can utilize? Perhaps BitBucket?

Basically, we are looking for something similar to BeyondCompare, the desktop file comprison tool, but for Directories comparison in Azure Devops.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Cataster
  • 3,081
  • 5
  • 32
  • 79

1 Answers1

1

Azure DevOps has a REST API, which includes:

Diffs compare a target version with a base version and return a list of items that are only in the target version. If either the target or base version isn't specified, then the default branch is used.

Since you are dealing with Azure DevOps Git repositories, you can also clone it locally, and review your history through Visual Studio or Command-line.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • yes, i think this is a good start, especially the git diff/branch comparison before a merge on web portal. Thanks :D – Cataster Nov 03 '19 at 06:33
  • is it possible to do a git compare right in the azure-devops web interface ? the appeal of this over doing it in VS or another client-side tool is that then presumably I could send people a link to the diff. ie, [similar to GitHub](https://help.github.com/en/github/committing-changes-to-your-project/comparing-commits-across-time#comparing-commits). – orion elenzil Dec 30 '19 at 16:23
  • @orionelenzil Not sure: I see local comparison (https://learn.microsoft.com/en-us/azure/devops/repos/git/review-history?view=azure-devops&tabs=visual-studio) but no web GUI. – VonC Dec 30 '19 at 16:26
  • thanks @VonC. The web UI suggests it _might_ be possible because when viewing the changes for a particular commit it has text `Diff to Parent 1 - ` but I haven't figured out how to change `Parent 1`. In any event, I realized my question might be more appropriate as [its own question, here](https://stackoverflow.com/questions/59533905/azure-devops-compare-two-commits-right-in-the-web-ui). – orion elenzil Dec 30 '19 at 16:29