Skip to content

issues Search Results · repo:bluekeyes/go-gitdiff language:Go

Filter by

24 results
 (126 ms)

24 results

inbluekeyes/go-gitdiff (press backspace or delete to remove)

Hello, Trying to parse this specific commit (more precisely, its diff), and get the following error: gitdiff: line 1195: invalid line operation: d The error happens in this specific place for some ...
  • aine-etke
  • 6
  • Opened 
    on Mar 20
  • #60

I encountered this issue via https://github.com/aspect-build/rules_lint/issues/487 tl;dr; If a file is missing a newline at the end or the patch removes the newline at the end, go-gitdiff fails applying ...
  • fzakaria
  • 5
  • Opened 
    on Mar 4
  • #57

Thank you for this useful tool! I m new to working with patches and have been experimenting with this tool. I m writing a script that takes a patch as a string from one copy of a repository and applies ...
  • gabrie30
  • 2
  • Opened 
    on Oct 1, 2024
  • #52

When a line starts with a tabulation the patch parsing fails with: gitdiff: line 15: invalid line operation: \t I updated the switch statement to support it. Also added a test to verify it works. I ...
  • frenchbeast
  • 7
  • Opened 
    on Aug 21, 2024
  • #51

Hi! I have a need to convert a patch into a normal diff, is there some functionality within this library that could facilitate that or do you have any recommendations? I d rather not parse the patch ...
  • neurosnap
  • 5
  • Opened 
    on Jul 18, 2024
  • #47

Hi! We are using this lib over at https://pr.pico.sh and so far haven t had any issues. So thank you for your hard work! We are trying to support cover letters in our patch request workflow, but it looks ...
  • neurosnap
  • 4
  • Opened 
    on Jul 14, 2024
  • #45

From a94db29e472831db7a75ba52e99ab717c17886eb Mon Sep 17 00:00:00 2001 From: dependabot[bot] 59619111+dependabot[bot]@users.noreply.github.com Date: Mon, 29 Apr 2024 17:31:28 +0000 Subject: [PATCH] ...
bug
  • alam-chime
  • 2
  • Opened 
    on May 1, 2024
  • #43

I have a git patch that is triggering this line https://github.com/bluekeyes/go-gitdiff/blob/13e8639a0b49cb49741b05f11ac52c530d2d38f0/gitdiff/patch_header.go#L114 commit 44b179bf547c84cb588480558de71df1e9243aaf ...
  • ajinabraham
  • 1
  • Opened 
    on Mar 6, 2024
  • #41

image since the source contains a line as -------------------------------------- the isSourceLine function just ignore it, i wonder if the condition should be changed as below if l := len(line); l == ...
  • nemax
  • 4
  • Opened 
    on Mar 13, 2023
  • #39

Looks like your library is a bit out-of-date? Line 63 for me in sample I was testing with looks like this: new file mode 100644
  • prologic
  • 6
  • Opened 
    on Dec 26, 2022
  • #37
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub