In this blog post, I will guide you on how to utilize two of the very simple yet useful features (Blame and Diff) available on SAP Web IDE Git. Even though its been a little while I had been developing UI5 apps in Web IDE coming across the open sap course on Git was a real eye opener when it comes to version management. Git is an open source system which is widely used for distributed version control/management. If you totally new to Git you can refer few of the blogs by Daniel Wroblewski and Kiran Israni to understand how to get started.
Introduction:
Diff/Compare is an option for code comparison between the currently editing code and the previous committed version of it, this can be easily done by using the git Diff tool available in the Git Pane. The second one is Blame, you can use it to track the details of who all made changes to a file in Web IDE.
Pre-requisites:
For this blog post, I have a repository created in SCP and a project in WEB IDE created using the SAP UI5 Application template. I have cloned this project with the repository having one remote branch ‘origin/master’. There is only one local branch master which gets automatically created by SAP WEB IDE when you clone.
Diff/Compare:
Blame
Git Blame feature can be highly useful to us when more than one developer works on the same set of code. It shows us the details like username of the last person who has made changes to each line in the file and date along with the commit details.
Conclusion:
To sum up, we have seen the different steps to follow if you what to do a version comparison and to discover the revision details of your source code in SAP Web IDE Git.
I hope you found this simple demo useful in understanding Diff and Blame in Git.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |