# Re: \[ANNOUNCE\] Example Cogito Addon - cogito-bundle

- From: Jakub Narebski \<hidden\>
- Date: 2016-06-15 22:42:45 
- List: git
- Page: https://ratatoskr.run/git/2016/06/7292052
- Thread: https://ratatoskr.run/git/2016/06/7291303/t/3.md

```text
Jan Hudec wrote:

> Besides I start to think that it should be actually possible to solve
> this case with the git-style approach. I have to state beforehand, that
> I don't know how the most recent git algorithm works, but I imagine
> there is some kind of 'brackets' saying the text is in a given file. Now
> if those 'brackets' were not flat, but nested, ie. instead of saying
> 'this is in foo/bar' it would say 'this is in bar is in foo', the
> difference when renaming directory would only affect the 'outer bracket'
> and therefore merge correctly with adding content inside it.

You mean, to consider "contents" of a directory union of contents
of files and directories it contains, and then use the same "rename
detection" algorithm as for files?

-- 
Jakub Narebski
Poland
```
