A maintainer is reviewing two local branches created from separate Copilot-assisted tasks. Before asking either agent to continue, the maintainer wants to identify whether both branches changed the same files and whether the outputs conflict. Which action should the maintainer take next? Select one answer.
cd ~/work/catalog-api
git fetch origin
git diff --name-only origin/main...copilot/search-index-fix > /tmp/agent-a-files.txt
git diff --name-only origin/main...copilot/product-cache-fix > /tmp/agent-b-files.txt
comm -12 \
<(sort /tmp/agent-a-files.txt) \
<(sort /tmp/agent-b-files.txt)
The command prints:
src/lib/cachePolicy.ts
src/search/indexer.tsChoose an answer
Tap an option to check your answer.
Correct answer: Review overlapping files before continuing either task.
Why this is the answer
The comm -12 command output shows that src/lib/cachePolicy.ts and src/search/indexer.ts were modified by both branches. This indicates overlapping changes. Before proceeding, the maintainer must review these common files to understand the nature of the changes and identify potential conflicts. Ignoring this step and merging, continuing independently, or restarting would risk introducing bugs or losing work. Merging the branch with fewer changes doesn't address the potential conflicts in the shared files. Asking agents to continue independently without conflict resolution could lead to more complex merge issues later. Deleting branches and restarting is an extreme measure that discards completed work without attempting to resolve the current state.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed