Tracking text chunk diffs between locations and files #9151
Replies: 3 comments 1 reply
|
Reading this, I'm reminded of trying to find the commit that deleted something. You can use |
|
Everything I know about weaves I learned from Larry McVoy and a slight perusal of the BitKeeper codebase (which is Apache-licensed now.) Larry is extremely enthusiastic about sharing his knowledge with active source control hackers, I'd encourage you to look him up if you want to try and figure out how to get weaves into the jj codebase! Realistically I think doing something involving weaves is at least a new cache layer (like the linelog extension in Mercurial was, which was also how |
Uh oh!
There was an error while loading. Please reload this page.
While exploring improvements to git and vc-systems, a thought experiment for the larger JJ community. Often I've found that its challenging to track a chunk of text that has moved locations within a file or has moved to a new file, but the diff is largely unchanged or changed very slightly. This impacts both being able to see the history of a chunk of code vs the history of a file, and impacts how well peers are able to review a code change and comprehend the diff.
It would be stellar if jj or a future VCS was able to either itself track (computationally difficult) or allow the author or a user to markup a commit to help describe the diff. If this can be tracked in the commits, tools which view the diff of a file overtime or when viewing the diff in a PR would be able to display the changes in a way that is more nuanced and comprehendable.
Anyway no idea if this is something jj will ever explore or be capable of exploring. But something akin to this would certainly make my life easier as a software engineer.
All reactions