Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Diff #159

Open
InRe-Dan opened this issue Apr 21, 2023 · 0 comments
Open

Git Diff #159

InRe-Dan opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request significant Intended to denote large changes that Fang and Michael to undertake befor the main release

Comments

@InRe-Dan
Copy link
Collaborator

We would like to have an implementation of the git diff command, which allows users to see the differences in files between their current location and a different point in the git history. The functionality of this feature will be extremely similar to how GitHub shows you which lines have been added and removed between commits: example here

On the main Tab UI, there should be a "Compare" button which makes a window pop up that allows the user choose which branches on which remotes to compare. Once the user confirms the branches, this window will close and another will open which shows the differences (the output of git diff.
Ideally we would like to have red/green colour coding for removals and additions.
We can either copy the list view that GitHub has, or use different tabs to show differences between different files.

To implement this issue, you will need to read up on JGit's DiffCommand and use it in your code to get the output of Git Diff.
I recommend that you get familliar with the output of git diff on the command line, and how it is used.
This feature will require two new FXML files and corresponding controllers, additions to TabController.java
and tab.fxml, and it may also require some new libraries or dependencies to make processing the differences between files easy.

@InRe-Dan InRe-Dan added significant Intended to denote large changes that Fang and Michael to undertake befor the main release enhancement New feature or request labels Apr 21, 2023
@ming-0302 ming-0302 assigned ming-0302 and unassigned Foxinatel Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request significant Intended to denote large changes that Fang and Michael to undertake befor the main release
Projects
None yet
Development

No branches or pull requests

3 participants