nprapps / nprapps/dailygraphics-next

Watch Git's lockfile for safer updates

Open
#49 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
72
Forks
19
PR merge metrics
No merged PRs in 30d

Description

When a repo gets pulled, especially if there's a rebase going on and there's a graphic page loaded, it's possible to crash the rig while it tries to access watched files that aren't available temporarily. We also don't watch the .git directory, since we don't want to bog that down. However, if we watch .git/index.lock, we can pause the live reload during Git operations, and then resume once it's done, we just have to work out how to add that watcher without monitoring the entire directory.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the live-reload file-watcher setup and the code that handles reloads during Git operations. Determine how .git/index.lock can be watched without monitoring the entire .git directory, then verify that reloads pause while the lock exists and resume after it is removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.