{"id":15697907,"url":"https://github.com/henrahmagix/diff-so-fancy-interactive-bug-example","last_synced_at":"2025-10-18T19:09:09.889Z","repository":{"id":145139634,"uuid":"109716568","full_name":"henrahmagix/diff-so-fancy-interactive-bug-example","owner":"henrahmagix","description":"Example of diff-so-fancy bug when used for --patch","archived":false,"fork":false,"pushed_at":"2017-11-27T12:05:28.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-05T15:48:42.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henrahmagix.png","metadata":{"files":{"readme":"README.md","changelog":"changed","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-06T15:55:40.000Z","updated_at":"2017-11-27T12:05:54.000Z","dependencies_parsed_at":"2023-04-28T13:00:43.829Z","dependency_job_id":null,"html_url":"https://github.com/henrahmagix/diff-so-fancy-interactive-bug-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrahmagix%2Fdiff-so-fancy-interactive-bug-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrahmagix%2Fdiff-so-fancy-interactive-bug-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrahmagix%2Fdiff-so-fancy-interactive-bug-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrahmagix%2Fdiff-so-fancy-interactive-bug-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrahmagix","download_url":"https://codeload.github.com/henrahmagix/diff-so-fancy-interactive-bug-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326791,"owners_count":20759439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T19:22:09.278Z","updated_at":"2025-10-18T19:09:09.837Z","avatar_url":"https://github.com/henrahmagix.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diff-so-fancy interactive bug example\n\nA bug exists where diff-so-fancy shows the first line of the next hunk when used with `git add --patch` (using config `interactive.difffilter=diff-so-fancy`) and splitting a hunk with `s`.\n\nThis is confusing because it feels like accepting the hunk is accepting the first change of the next hunk, which it isn't actually doing.\n\n## Steps\n\n- `./run.sh` to go into git-add-interactive mode\n- Enter `s` to split the hunk\n\nSee that the first change of the next hunk – the removal of `let's have a break` – is showing in the current change.\n\n- Enter `y` to accept the first hunk\n\nSee that the removal of `let's have a break` is in this hunk too.\n\n- Enter `n` to deny the second hunk\n- Diff the staged and unstaged changes\n\nSee how the `let's have a break` line is not staged, even though it appeared to be part of the first hunk that was staged.\n\n![image](https://user-images.githubusercontent.com/1429026/33265723-a7bcbdfc-d36a-11e7-81d4-9f31d2475382.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrahmagix%2Fdiff-so-fancy-interactive-bug-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrahmagix%2Fdiff-so-fancy-interactive-bug-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrahmagix%2Fdiff-so-fancy-interactive-bug-example/lists"}