4 ms·
Git has its claws deep in the file system. On the browser side, JS and wasm have very limited access to the file system. You’d need to somehow bridge that gap.
by mr_toad 9y ago
Git has its claws deep in the file system. On the browser side, JS and wasm have very limited access to the file system. You’d need to somehow bridge that gap. (It looks like isomorphic-git is using indexdb, and not the file system).
There’s probably other dependencies (ssh, http, an editor for commits) that need to be resolved to get expected functionality.
- jvilk 9y agoYou're right; when it is running in the browser, isomorphic-git does not have access to the operating system's file system. Instead, it uses BrowserFS [1], which emulates a file system abstraction on top of arbitrary storage backends. It supports IndexedDB, localStorage, and Dropbox, among others. (Disclaimer: I am the author of BrowserFS.) [1] https://github.com/jvilk/BrowserFS https://github.com/jvilk/BrowserFS