# ep: Move pure diffing functions to zeta_prompt:udiff \(\#52959\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/66ea4b89af5ea8112b94d0c95bf751009eceded3)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 66ea4b89af5ea8112b94d0c95bf751009eceded3

Requested commit: 66ea4b89af5ea8112b94d0c95bf751009eceded3

Commit: 66ea4b89af5ea8112b94d0c95bf751009eceded3

Tree: 068f252cbd168fddc48d5542e0f6d4d6bd4e6492

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
ep: Move pure diffing functions to zeta_prompt:udiff (#52959)

This PR mostly moves some code around. It also adds a high-level
`format_expected_output` function that routes patch formatting to
specific prompt formats. This was `zeta_prompt` can format
`expected_output` for training.

Keeping everything prompt-related in a "pure" module (with no heavy
dependencies) makes it easier to write bindings.


Release Notes:

- N/A
```

## Parents

- [f8d646794d64577c7f75279a06491f7bc2b7d918](https://git.cafe/gitcafe/zed/commit/f8d646794d64577c7f75279a06491f7bc2b7d918?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/66ea4b89af5ea8112b94d0c95bf751009eceded3?format=markdown)
