Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
sourcegraph
/
go-diff
Public
Notifications
You must be signed in to change notification settings
Fork
52
Star
454
Code
Issues
4
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Branch selector
master
User selector
All users
Datepicker
All time
Commit history
Commits on Jul 26, 2026
Fix panic on short "diff --git" args (#90)
Show description for c69bfd5
samarth70
authored
c69bfd5
View commit details
Copy full SHA for c69bfd5
Browse repository at this point
Commits on Apr 2, 2026
bump minimum go 1.14 -> 1.20
Show description for 654d317
keegancsmith
committed
654d317
View commit details
Copy full SHA for 654d317
Browse repository at this point
Add new functionaltiy for reversing diffs. (#72)
vslashg
authored
a839d2c
View commit details
Copy full SHA for a839d2c
Browse repository at this point
add go test github workflow (#79)
keegancsmith
authored
3751ac7
View commit details
Copy full SHA for 3751ac7
Browse repository at this point
remove outdated scip workflow
keegancsmith
committed
205a5dd
View commit details
Copy full SHA for 205a5dd
Browse repository at this point
diff: simplify readLine branching
keegancsmith
committed
c9dad3b
View commit details
Copy full SHA for c9dad3b
Browse repository at this point
diff: share lineReader cache initialization
keegancsmith
committed
922f9d3
View commit details
Copy full SHA for 922f9d3
Browse repository at this point
diff: remove stale lineReader comment
keegancsmith
committed
45b1037
View commit details
Copy full SHA for 45b1037
Browse repository at this point
Make strict dropCR behavior optional via ParseOptions (#78)
EmmanuelAC1
authored
6ebdcc0
View commit details
Copy full SHA for 6ebdcc0
Browse repository at this point
Commits on Jul 14, 2025
chore: removed the inactive badge travis (#73)
Olexandr88
authored
005b930
View commit details
Copy full SHA for 005b930
Browse repository at this point
Commits on Feb 23, 2024
Merge pull request #71 from sourcegraph/nsc/lsifgo-to-scipgo
Show description for 9f2e185
Strum355
authored
9f2e185
View commit details
Copy full SHA for 9f2e185
Browse repository at this point
chore: use scip-go instead of lsif-go for precise indexing in CI
Strum355
committed
78610d9
View commit details
Copy full SHA for 78610d9
Browse repository at this point
Commits on Mar 16, 2023
remove unnecessary dependencies (#69)
yuxiang-zhang
authored
1b4d09c
View commit details
Copy full SHA for 1b4d09c
Browse repository at this point
Commits on Jan 22, 2023
include full license from python-unidiff
keegancsmith
committed
bc7d968
View commit details
Copy full SHA for bc7d968
Browse repository at this point
Commits on Nov 23, 2022
Fix parsing of deleted empty files without a/ b/ prefixes (#67)
Show description for f8cd299
eseliger
authored
f8cd299
View commit details
Copy full SHA for f8cd299
Browse repository at this point
Commits on Oct 31, 2022
Support Apple Diff timestamps (#65)
Show description for 7ef5f68
freeformz
authored
7ef5f68
View commit details
Copy full SHA for 7ef5f68
Browse repository at this point
Commits on Jun 25, 2021
Merge pull request #63 from zegl/extended-binary-no-index
Show description for 9d1f353
mrnugget
authored
9d1f353
View commit details
Copy full SHA for 9d1f353
Browse repository at this point
Commits on Jun 7, 2021
Support renamed binary files without index-row
zegl
committed
c26dd7a
View commit details
Copy full SHA for c26dd7a
Browse repository at this point
Commits on May 26, 2021
Merge pull request #61 from kwi-dk/master
Show description for 35b24a7
mrnugget
authored
35b24a7
View commit details
Copy full SHA for 35b24a7
Browse repository at this point
Commits on May 25, 2021
Address PR feedback
kwi-dk
committed
28094f6
View commit details
Copy full SHA for 28094f6
Browse repository at this point
Commits on Mar 22, 2021
Improved test coverage (and slightly stricter error handling)
kwi-dk
committed
953267f
View commit details
Copy full SHA for 953267f
Browse repository at this point
Add support for complicated filenames and file copies
Show description for 9721ba5
kwi-dk
committed
9721ba5
View commit details
Copy full SHA for 9721ba5
Browse repository at this point
Commits on Mar 16, 2021
Merge pull request #60 from craigfurman/trailing-content
Show description for a768196
mrnugget
authored
a768196
View commit details
Copy full SHA for a768196
Browse repository at this point
Commits on Mar 15, 2021
MultiFileDiffReader returns trailing content
Show description for b8a97d3
craigfurman
committed
b8a97d3
View commit details
Copy full SHA for b8a97d3
Browse repository at this point
Commits on Jan 7, 2021
Merge pull request #58 from sourcegraph/mrn/clean-up-header-parsing
Show description for 82e3467
mrnugget
authored
82e3467
View commit details
Copy full SHA for 82e3467
Browse repository at this point
Commits on Jan 5, 2021
Simplify handling of empty file diffs
mrnugget
committed
3a166d4
View commit details
Copy full SHA for 3a166d4
Browse repository at this point
Handle rename-and-mode-change case (verbosely for now)
mrnugget
committed
d9b0834
View commit details
Copy full SHA for d9b0834
Browse repository at this point
Extend sample tests, including failing test
mrnugget
committed
640c65b
View commit details
Copy full SHA for 640c65b
Browse repository at this point
Commits on Jan 4, 2021
Merge pull request #57 from uoli/fix-filemode-change
Show description for d1e74e0
mrnugget
authored
d1e74e0
View commit details
Copy full SHA for d1e74e0
Browse repository at this point
Commits on Dec 17, 2020
fix formatting
LeoUnity
committed
ae1c453
View commit details
Copy full SHA for ae1c453
Browse repository at this point
add support for file mode changes only
LeoUnity
committed
bfac23a
View commit details
Copy full SHA for bfac23a
Browse repository at this point
Commits on Sep 29, 2020
Merge pull request #56 from sourcegraph/mrnugget/fix-non-extended-file-header-parsing-2
Show description for 5bc20c4
mrnugget
authored
5bc20c4
View commit details
Copy full SHA for 5bc20c4
Browse repository at this point
Add more tests for multi file diff reading and printing
mrnugget
committed
deb8e40
View commit details
Copy full SHA for deb8e40
Browse repository at this point
Change tests for LineReader to not duplicate readLine tests
mrnugget
committed
6b7c995
View commit details
Copy full SHA for 6b7c995
Browse repository at this point
Add tests for LineReader
mrnugget
committed
a8fab66
View commit details
Copy full SHA for a8fab66
Browse repository at this point
Previous
Next
You can’t perform that action at this time.