Font Size: a A A

Research Of Annotation Positioning Technology In The Process Of Code Evolution In Git Repertory

Posted on:2019-10-23Degree:MasterType:Thesis
Country:ChinaCandidate:G W D ZhuFull Text:PDF
GTID:2428330566499354Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In the process of team development,when members submit code to Git repository,it may be necessary to add some annotations to the code without changing the contents and structure of the source code,so as to help the project leader's review.At the same time,they also want to add complex annotations such as images,pseudo-algorithms,and hyperlinks to hard-to-understand,confusing core business logic in the code,and the system can automatically reposition historical annotations int the new version.At present,in the process of software development,there are some problems such as forgetting to add annotations,code redundancy and structural confusion,which reduces the readability of source code and the maintainability of programs.Moreover,the popular code hosting platform GitHub or Git@OSC does not provide a non intrusive and relocatable code annotation function,which can not solve the above possible problems.At the same time,the enterprise cooperative users who use the code hosting platform Gitplex are interviewed.The results show that the project leader agrees with the function.Based on the above problems and requirements,this paper proposes a diff annotation location technology based on string transformation on the history and revising and tracing functions of Git repository.First,we use the string prefix matching algorithm and the suffix matching algorithm to make text diff markup to two historical version files in the warehouse.At the same time,the row level string is converted to a char type character,which improves the performance of the text diff and the accuracy of the annotation location.It corrects the location errors that may occur in the annotation positioning by locality principle,and improves the performance of the text diff using cache technology.Finally,a comparative experimental scheme is developed to verify the excellent performance of the four annotated positioning techniques.A large number of experimental results show that the performance of the annotation positioning technique studied in this paper is more excellent in two aspects of operation time and correct rate.At present,the annotation positioning technology has been used in the annotation system developed based on the code hosting platform Gitplex,which has good performance and good performance.
Keywords/Search Tags:Git repository, code hosting platform, non-intrusive, annotation positioning, code annotation
PDF Full Text Request
Related items