René's URL Explorer Experiment


Title: Add git:refresh-status command by benogle · Pull Request #2 · atom/github · GitHub

Open Graph Title: Add git:refresh-status command by benogle · Pull Request #2 · atom/github

X Title: Add git:refresh-status command by benogle · Pull Request #2 · atom/github

Description: Basically this adds a git:refresh-status command (cmd-option-r) that will refresh all the models from nodegit. So change something in the editor or stage something outside the editor, and hit cmd-option-r and the models / UI will update. it just calls FileList::loadFromGitUtils() which now can be called anytime we want to refresh things. This encompassed a number of things: Made all the models emit events when anything changes Created an EventTransactor to roll up several events into one. That way a hunk stage doesnt emit n events at the top of the model, where n is the number of lines in the hunk All models forward events that their children emit Made the DiffView deal with a FileList which forwards FileDiff changes Tried to make all the models consistent in their approaches to eventing

Open Graph Description: Basically this adds a git:refresh-status command (cmd-option-r) that will refresh all the models from nodegit. So change something in the editor or stage something outside the editor, and hit cmd-o...

X Description: Basically this adds a git:refresh-status command (cmd-option-r) that will refresh all the models from nodegit. So change something in the editor or stage something outside the editor, and hit cmd-o...

Opengraph URL: https://github.com/atom/github/pull/2

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:92008d5c-90f3-8d78-8ff5-e70423126658
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF90:2E960D:5B4AA11:7E70C9B:6A5E6DB2
html-safe-nonce1c9d0d3782573ee703b263ad68a75ef6e289de6433f38237e4f5ea29de127461
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjkwOjJFOTYwRDo1QjRBQTExOjdFNzBDOUI6NkE1RTZEQjIiLCJ2aXNpdG9yX2lkIjoiNjQ0ODc5MDE5Mjk1OTQxNzc3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac48a99c0b8ad55961bacb4d7790e51c64a0d05235ed51d85b75eeb2562de0e077
hovercard-subject-tagpull_request:58078804
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/atom/github/pull/2/files
twitter:imagehttps://avatars.githubusercontent.com/u/69169?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69169?s=400&v=4
og:image:altBasically this adds a git:refresh-status command (cmd-option-r) that will refresh all the models from nodegit. So change something in the editor or stage something outside the editor, and hit cmd-o...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0e33eedeef87e76d6b013d348ad423a9e503a88efa7080eec1ed2ddba90606bd
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/atom/github git https://github.com/atom/github.git
octolytics-dimension-user_id1089146
octolytics-dimension-user_loginatom
octolytics-dimension-repository_id46155786
octolytics-dimension-repository_nwoatom/github
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id46155786
octolytics-dimension-repository_network_root_nwoatom/github
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release15c56e0437fea28b3adfecf1764d0b42db481e03
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/atom/github/pull/2/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fatom%2Fgithub%2Fpull%2F2%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fatom%2Fgithub%2Fpull%2F2%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=atom%2Fgithub
Reloadhttps://github.com/atom/github/pull/2/files
Reloadhttps://github.com/atom/github/pull/2/files
Reloadhttps://github.com/atom/github/pull/2/files
Please reload this pagehttps://github.com/atom/github/pull/2/files
atom https://github.com/atom
githubhttps://github.com/atom/github
Notifications https://github.com/login?return_to=%2Fatom%2Fgithub
Fork 406 https://github.com/login?return_to=%2Fatom%2Fgithub
Star 1.2k https://github.com/login?return_to=%2Fatom%2Fgithub
Code https://github.com/atom/github
Issues 440 https://github.com/atom/github/issues
Pull requests 65 https://github.com/atom/github/pulls
Actions https://github.com/atom/github/actions
Projects https://github.com/atom/github/projects
Wiki https://github.com/atom/github/wiki
Security and quality 0 https://github.com/atom/github/security
Insights https://github.com/atom/github/pulse
Code https://github.com/atom/github
Issues https://github.com/atom/github/issues
Pull requests https://github.com/atom/github/pulls
Actions https://github.com/atom/github/actions
Projects https://github.com/atom/github/projects
Wiki https://github.com/atom/github/wiki
Security and quality https://github.com/atom/github/security
Insights https://github.com/atom/github/pulse
benoglehttps://github.com/benogle
masterhttps://github.com/atom/github/tree/master
bo-refresh-statushttps://github.com/atom/github/tree/bo-refresh-status
Conversation 3 https://github.com/atom/github/pull/2
Commits 23 https://github.com/atom/github/pull/2/commits
Checks 0 https://github.com/atom/github/pull/2/checks
Files changed https://github.com/atom/github/pull/2/files
Please reload this pagehttps://github.com/atom/github/pull/2/files
Add git:refresh-status command https://github.com/atom/github/pull/2/files#top
Show all changes 23 commits https://github.com/atom/github/pull/2/files
58081a6 log staged lines benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/58081a6b7c086f7ee173bd77af23712eb980a3f9
89d1775 Log toString() benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/89d177502b73711bd2f805696791bb375ab29046
bec31f5 Change the staged test to check content and line origin benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/bec31f5d756c7c39e8eecabdba201d371c314ef6
4f1a121 Add events to diffHunk benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/4f1a121d152a51547882d5651372594040d2800f
91ce99c Add FileDiff events benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/91ce99c49a3806a22e32f0660970433a00b26706
0c5c0fa Nope, not using this benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/0c5c0fa12b73a165a02c64aa7e2d7d272123b8b7
4be6fb2 Allow events to be passed through benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/4be6fb29c367ee529a750447ce5f9179e98df219
4493232 Add events for fileDiff changes to fileList benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/4493232f0f2a1441edf2cf3ae35cb79e317a3a3d
31066b4 Generalize and simplify the transaction stuff benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/31066b4905bad20b80a3b688ed90f6c1353c3067
32790cd Move stuff benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/32790cd1054ad4a638d323c47a51af5da3a3d264
5fb7e24 Emit events when header and lines change benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/5fb7e2438648a078b75c8f956d450fbfc92448e8
b767fb1 Specs for header and line events benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/b767fb16f427af1af19148fb0475ef220696e036
7ba4c54 Rework fromString benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/7ba4c543a593cd8d2aaa191360ed7f3a34e91cfb
9f0043f HunkLine::fromString emits an event benogle Feb 2, 2016 https://github.com/atom/github/pull/2/commits/9f0043f47094aa215bcd5a95934617cc67e6a57a
37d7f27 Emit events for all set methods in FileDiff benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/37d7f274db60ccc39dd4931a7b4886ad0a7d3549
180a66a Transact in FileDiff::fromGitUtilsObject benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/180a66a6310729300d0475ce711b6a8f078c01df
741ccf5 Introduce the EventTransactor benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/741ccf5499d4a2997d8dc70d5fb812f5fcc6f063
9e3e1d2 Use EventTransactor in DiffHunk benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/9e3e1d2fca5bd064b5291d4c8b84bed657ce3240
89e69ea Use EventTransactor in FileDiff benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/89e69ea973680bc121c7e63f896a5fbb0adfc5a9
c1839c0 Use EventTransactor in FileList benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/c1839c0c4d786f40c12139c181a83ea9a8070c33
11dc197 Make DiffViewModel take a FileList benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/11dc1975c58eb9f98e2be61f2a477af86493e57f
eaece93 Add a git:refresh-status command benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/eaece9348eee4fef66c5f9a248ea0f1fa642a2f5
9172734 Revert "Change the staged test to check content and line origin" benogle Feb 3, 2016 https://github.com/atom/github/pull/2/commits/917273460f5bd3ed7e96bdfde9cd2ffcce6921fb
Clear filters https://github.com/atom/github/pull/2/files
Please reload this pagehttps://github.com/atom/github/pull/2/files
Please reload this pagehttps://github.com/atom/github/pull/2/files
git-experiment.cson https://github.com/atom/github/pull/2/files#diff-3f5656c03440a585c283872914ed11ced5eb0758cd962ad3999b9a7c3cff5029
diff-hunk.js https://github.com/atom/github/pull/2/files#diff-ed1b252650e5fba550718cf4e2d26c7d5dfa71cefd180c1ed981b0a0a06c5632
diff-view-model.js https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
event-transactor.js https://github.com/atom/github/pull/2/files#diff-8fdedcc2650a9d96d407f95088f025a9ad185bc6f6c54569741afc5346bd1f81
file-diff.js https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
file-list.js https://github.com/atom/github/pull/2/files#diff-bbc76ee4392cb9602e2ce4d6081c2985bad45532441cec4da57b4a2d8a57b2b8
hunk-line.js https://github.com/atom/github/pull/2/files#diff-ae7e19e763e7464644b95f33c8a220d399cf73c0a3979148d1c7824eedfd49bc
main.js https://github.com/atom/github/pull/2/files#diff-7934bf411fea192ad8cd69e0a12911648a2842cb0f2409a8fb67b41b7069d757
diff-component-spec.js https://github.com/atom/github/pull/2/files#diff-41a2034e055dcafade1631088e4d48e7696a245ef8fa1b8c047d8f985df86388
diff-hunk-spec.js https://github.com/atom/github/pull/2/files#diff-8175ace0c0a96d297648f28e58a2cd43a978ed2bdc63f5099a3108e13278ade0
diff-selection-spec.js https://github.com/atom/github/pull/2/files#diff-9859c3c62f6bdb5ae900afbb1bf6cfaa41802854db630cd5c0e57c9c744d2648
diff-view-model-spec.js https://github.com/atom/github/pull/2/files#diff-f603ad13aaac3a1e46184ac0affe6d4598befa05cc7fdbbc1fbf8b6fbf4b64c9
event-transactor-spec.js https://github.com/atom/github/pull/2/files#diff-c5c37916f312a959d49ddd785cb51cae017e70a96c3bacc2fe7e390752727587
file-diff-spec.js https://github.com/atom/github/pull/2/files#diff-9c981964d56204594394786156e94abe09712d699b56e7cbc131f3560acee3bd
file-list-spec.js https://github.com/atom/github/pull/2/files#diff-108b1494fd7190a9a5bed013ce09093bd843b494903ac1b0c977723433cda579
hunk-line-spec.js https://github.com/atom/github/pull/2/files#diff-3cffe3903cb4f192ab59b71b7f5e96410adebe94c59116266bb5a2680cb6977d
keymaps/git-experiment.csonhttps://github.com/atom/github/pull/2/files#diff-3f5656c03440a585c283872914ed11ced5eb0758cd962ad3999b9a7c3cff5029
View file https://github.com/atom/github/blob/917273460f5bd3ed7e96bdfde9cd2ffcce6921fb/keymaps/git-experiment.cson
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/atom/github/pull/2/{{ revealButtonHref }}
https://github.com/atom/github/pull/2/files#diff-3f5656c03440a585c283872914ed11ced5eb0758cd962ad3999b9a7c3cff5029
lib/diff-hunk.jshttps://github.com/atom/github/pull/2/files#diff-ed1b252650e5fba550718cf4e2d26c7d5dfa71cefd180c1ed981b0a0a06c5632
View file https://github.com/atom/github/blob/917273460f5bd3ed7e96bdfde9cd2ffcce6921fb/lib/diff-hunk.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/atom/github/pull/2/{{ revealButtonHref }}
https://github.com/atom/github/pull/2/files#diff-ed1b252650e5fba550718cf4e2d26c7d5dfa71cefd180c1ed981b0a0a06c5632
https://github.com/atom/github/pull/2/files#diff-ed1b252650e5fba550718cf4e2d26c7d5dfa71cefd180c1ed981b0a0a06c5632
https://github.com/atom/github/pull/2/files#diff-ed1b252650e5fba550718cf4e2d26c7d5dfa71cefd180c1ed981b0a0a06c5632
https://github.com/atom/github/pull/2/files#diff-ed1b252650e5fba550718cf4e2d26c7d5dfa71cefd180c1ed981b0a0a06c5632
lib/diff-view-model.jshttps://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
View file https://github.com/atom/github/blob/917273460f5bd3ed7e96bdfde9cd2ffcce6921fb/lib/diff-view-model.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/atom/github/pull/2/{{ revealButtonHref }}
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
https://github.com/atom/github/pull/2/files#diff-c4b9dd0d32504a7bf97c5b1f7f4630d4acb990baf031694ea166e88f606d228c
lib/event-transactor.jshttps://github.com/atom/github/pull/2/files#diff-8fdedcc2650a9d96d407f95088f025a9ad185bc6f6c54569741afc5346bd1f81
View file https://github.com/atom/github/blob/917273460f5bd3ed7e96bdfde9cd2ffcce6921fb/lib/event-transactor.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/atom/github/pull/2/{{ revealButtonHref }}
lib/file-diff.jshttps://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
View file https://github.com/atom/github/blob/917273460f5bd3ed7e96bdfde9cd2ffcce6921fb/lib/file-diff.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/atom/github/pull/2/{{ revealButtonHref }}
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
https://github.com/atom/github/pull/2/files#diff-9354eca4d61a12bff0de0289e3d9e8320b43f853c684c5e9a66ea144d95326a5
Please reload this pagehttps://github.com/atom/github/pull/2/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.