Re-use of code
First Claim
Patent Images
1. A computer-implemented method comprising:
- creating a second instance of code in a target repository by copying a first instance of code in a source repository to the target repository;
generating, by a processor, metadata relating to the first instance of code;
at the target repository, monitoring the source repository to determine if the first instance of code has been modified based on the metadata, wherein the metadata comprises at least information relating to the source repository, a source file comprising the first instance of code, the first instance of code, and a property of the first instance of code;
responsive to determining the first instance of code has been modified, generating, at the target repository, a notification relating to the modification, wherein the notification includes raising an issue, the issue highlighting the modification to the first instance of code;
disabling the monitoring when the first instance of code and the second instance of code have diverged beyond a predetermined threshold value and when the issue is closed without any associated changes; and
providing a user with a component for updating the second instance of code at the target repository based on the notification and the disabling.
1 Assignment
0 Petitions
Accused Products
Abstract
Concepts for managing code copied from a source repository to a target repository are proposed. Example embodiments comprises generating metadata relating to code copied from the source repository. At the target repository, source repository is monitored to determine if the code copied from the source repository has been modified within the source repository based on the metadata. Responsive to determining the code copied from the source repository has been modified within the source repository, a notification relating to the modification is generated at the target repository.
-
Citations
20 Claims
-
1. A computer-implemented method comprising:
-
creating a second instance of code in a target repository by copying a first instance of code in a source repository to the target repository; generating, by a processor, metadata relating to the first instance of code; at the target repository, monitoring the source repository to determine if the first instance of code has been modified based on the metadata, wherein the metadata comprises at least information relating to the source repository, a source file comprising the first instance of code, the first instance of code, and a property of the first instance of code; responsive to determining the first instance of code has been modified, generating, at the target repository, a notification relating to the modification, wherein the notification includes raising an issue, the issue highlighting the modification to the first instance of code; disabling the monitoring when the first instance of code and the second instance of code have diverged beyond a predetermined threshold value and when the issue is closed without any associated changes; and providing a user with a component for updating the second instance of code at the target repository based on the notification and the disabling. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by at least one processor to cause the at least one processor to perform a method comprising:
-
creating a second instance of code in a target repository by copying a first instance of code in a source repository to the target repository; generating, by a processor, metadata relating to the first instance of code; at the target repository, monitoring the source repository to determine if the first instance of code has been modified based on the metadata, wherein the metadata comprises at least information relating to the source repository, a source file comprising the first instance of code, the first instance of code, and a property of the first instance of code; responsive to determining the first instance of code has been modified, generating, at the target repository, a notification relating to the modification, wherein the notification includes raising an issue, the issue highlighting the modification to the first instance of code; disabling the monitoring when the first instance of code and the second instance of code have diverged beyond a predetermined threshold value and when the issue is closed without any associated changes; and providing a user with a component for updating the second instance of code at the target repository based on the notification and the disabling. - View Dependent Claims (11, 12)
-
-
13. A system comprising:
-
a memory; and one or more processing circuits communicatively coupled to the memory, wherein the one or more processing circuits are configured to; create a second instance of code in a target repository by copying a first instance of code in a source repository to the target repository; generate metadata relating to the first instance of code; monitor the source repository to determine if the first instance of code has been modified based on the metadata, wherein the metadata comprises at least information relating to the source repository, a source file comprising the first instance of code, the first instance of code, and a property of the first instance of code; generate, at the target repository in response to the determining, a notification relating to the modification, wherein the notification includes raising an issue, the issue highlighting the modification to the first instance of code; disable the monitoring when the code in the source repository and the code within the target repository have diverged beyond a predetermined threshold value and when the issue is closed without any associated changes; and provide a user with a component for updating the second instance of code at the target repository based on the notification and the disabling. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification