CN114356392A - git information display method and device, electronic equipment and storage medium - Google Patents
git information display method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114356392A CN114356392A CN202111572822.3A CN202111572822A CN114356392A CN 114356392 A CN114356392 A CN 114356392A CN 202111572822 A CN202111572822 A CN 202111572822A CN 114356392 A CN114356392 A CN 114356392A
- Authority
- CN
- China
- Prior art keywords
- git
- information
- git information
- information based
- script
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a git information display method, a git information display device, electronic equipment and a storage medium, wherein the git information display method comprises the following steps: obtaining git information based on script codes, and storing the git information based on information storage fields in a configuration file of an application program; and reading the stored git information based on the git information tool method, and displaying the git information based on a popup window. The git information display method, the git information display device, the electronic equipment and the storage medium provided by the invention can overcome the defects of difficult fault location and low fault repair efficiency of the application program in the prior art, realize the assistance of developers to locate the fault of the application program and improve the fault repair efficiency.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a git information display method and device, electronic equipment and a storage medium.
Background
In daily development of the iOS application program, a developer needs to quickly and accurately locate a fault in the application program, but in actual development, many developers exist, the version issuing time is long, the version issuing branches are disordered and other problems exist, so that the version issuing branches and the version issuing nodes are difficult to find, the fault location of the application program is difficult, the fault repairing efficiency is low, and the customer experience and the development progress are seriously influenced.
Therefore, it is necessary to provide a git information display method, which can prompt git information for developers and assist the developers in locating faults of application programs.
Disclosure of Invention
The invention provides a git information display method, a git information display device, electronic equipment and a storage medium, which are used for solving the defects of difficulty in fault location and low fault repair efficiency of an application program in the prior art, realizing assistance of developers in locating faults of the application program and improving the fault repair efficiency.
The invention provides a git information display method, which comprises the following steps:
obtaining git information based on script codes, and storing the git information based on information storage fields in a configuration file of an application program;
and reading the stored git information based on the git information tool method, and displaying the git information based on a popup window.
According to the git information display method provided by the invention, the git information is obtained based on the script code, and the git information display method comprises the following steps:
and acquiring the git information based on script codes added in a script library of the Xcode programming software.
The git information display method provided by the invention further comprises the following steps:
adding script codes in a script library of the Xcode programming software before obtaining git information based on the script codes, and performing renaming operation on the script codes.
According to the git information display method provided by the invention, the git information comprises the following steps: packaging node information, packaging branch information, encryption key information, submitter information, and submission time of the application.
According to the git information display method provided by the invention, the displaying of the git information based on the popup window comprises the following steps:
and displaying the git information based on a bullet box of the application program home page.
The present invention also provides a git information display apparatus, comprising:
the acquisition and storage module is used for acquiring git information based on the script code, and storing the git information based on an information storage field in a configuration file of an application program;
and the information display module is used for reading the stored git information based on a git information tool method and displaying the git information based on a popup window.
According to the git information display method provided by the invention, the acquisition and storage module comprises the following steps:
and the acquisition unit is used for acquiring the git information based on the script codes added in the script library of the Xcode programming software.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the git information display method.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the git information presentation method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the git information presentation method as described in any of the above.
According to the git information display method, the git information display device, the electronic equipment and the storage medium, the git information is obtained directly through the configured script codes, and then the git information is stored, and when the git information needs to be displayed, the stored git information can be read and displayed based on a git information tool method. By means of displaying the git information, the method helps developers to position faults of the application program, and improves fault repairing efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a git information display method provided by the present invention;
FIG. 2 is a second schematic flow chart of the git information display method provided by the present invention;
FIG. 3 is a schematic structural diagram of a git information presentation device provided by the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The git information presentation method, apparatus, electronic device and storage medium of the present invention are described below with reference to fig. 1 to 4.
As shown in fig. 1, the git (distributed version control system) information display method provided by the present invention includes:
It can be understood that the git information display method provided by the invention is applied to ios application programs, and the ios application programs are developed based on Xcode development software.
Xcode is an integrated development tool (IDE) that runs on the operating system Mac OS X, which is the fastest way to develop macOS and iOS applications. The Xcode has a uniform user interface design, and the encoding, the testing and the debugging are completed in a simple window.
The Xcode is also a Language, and as a Language based on XML (Extensible Markup Language), the Xcode can assume various usage scenarios. It provides a tool-independent extensible method to describe various aspects of a compile-time component.
The Xcode development software opens an ios application program development project, writes a script which can be used for acquiring git information, and can acquire git information when the script runs.
It should be noted that git is an open-source distributed version control system, which can effectively process the version management of very small to very large projects at high speed, and is also an open-source version control software.
git information is information related to software code submitted to a server by a software developer through a git tool.
Further, the Script code may be a New Run Script Phase Script.
And step 120, reading the stored git information based on a git information tool method, and displaying the git information based on a popup window.
It is understood that the tool class method of git information may be a tool class method carried by the Xcode development software.
Plist file may be info. The method comprises the following steps that a project is newly established in Xcode development software every time, namely an application program development project is newly established, the Xcode development software automatically establishes an info. Plist file is an XML file. The read git information is stored via an information save field in the configuration file, for example, the read git information may be saved locally to the application.
In some embodiments, the obtaining git information based on script code comprises:
and acquiring the git information based on script codes added in a script library of the Xcode programming software.
It is understood that the Script library of the Xcode programming software can be a Build-phones Script library, the application development project is opened by the Xcode development software, and the New Run Script Phase Script is added in the Build-phones Script library.
In some embodiments, the git information presentation method further comprises:
adding script codes in a script library of the Xcode programming software before obtaining git information based on the script codes, and performing renaming operation on the script codes.
It will be appreciated that the Script code may be renamed separately from other scripts in the application development project, for example, the New Run Script Phase Script may be renamed to GitInfo Script.
In some embodiments, the git information comprises: packaging node information, packaging branch information, encryption key information, submitter information, and submission time of the application.
It can be understood that the packaged node information of the application program can be server node information uploaded by packaging of the application program codes; and packaging the branch information, namely the path branch information corresponding to the server which is uploaded by the developed application program codes in a packaging manner.
The encryption key information may be Secure Hash Algorithm (SHA), which is a cryptographic Hash function family that can calculate a fixed-length string (also called a message digest) corresponding to a digital message. And if the input messages are different, the probability that the input messages correspond to different character strings is high.
The five algorithms of the secure hash algorithm family are SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512, the latter four sometimes referred to collectively as SHA-2.
Based on the encryption key information, the submitted application program codes can be encrypted and packaged, and the safety of the application program codes is ensured.
The submitter information is the identity information of the person who has last submitted the application code to the server. The commit time, i.e., the time of the last commit of the application code to the server.
In some embodiments, said popup-based presentation of said git information comprises:
and displaying the git information based on a bullet box of the application program home page.
It can be understood that the git information is displayed in the form of pop-up boxes on the home page of the application program, so that a more striking information prompt can be provided for a software developer, and the software developer is facilitated.
The home page of the application program can be a login page of the application program, a clickable popup window can be designed on the home page of the application program, and the acquired git information can be displayed by clicking the popup window. Therefore, in this embodiment, instead of directly displaying the git information after the software account opening person enters the application program interface, when the software account opening person needs to test the problem of the application program, the software account opening person needs to click the popup window to display the git information, so as to investigate the reason and the position of the problem of the application program.
In other embodiments, the git information display method is as shown in fig. 2, a script for reading git information is created and written first, so that the git information is read through the script; plist is added with a field for storing git information under a corresponding configuration file info, and the read git information can be stored locally through the field; creating a GitInfo Tool method to read the saved git information; and displaying the git information read in real time on the home page of the application program based on the popup window.
In summary, the git information display method provided by the invention comprises the following steps; obtaining git information based on script codes, and storing the git information based on information storage fields in a configuration file of an application program; and reading the stored git information based on the git information tool method, and displaying the git information based on a popup window.
In the git information display method provided by the invention, the git information can be directly obtained through the configured script code, and then the git information is stored, and when the git information needs to be displayed, the stored git information can be read and displayed based on a git information tool method. By means of displaying the git information, developers are assisted to locate faults (namely bugs) of the application programs, and the fault repairing efficiency is improved.
The git information display device provided by the present invention is described below, and the git information display device described below and the git information display method described above may be referred to in correspondence with each other.
As shown in fig. 3, the git information display apparatus 300 according to the present invention includes: a fetch save module 310 and an information presentation module 320.
The obtaining and saving module 310 is configured to obtain git information based on the script code, and save the git information based on an information saving field in a configuration file of the application program.
The information display module 320 is configured to read the saved git information based on a git information tool method, and display the git information based on a popup window.
In some embodiments, the acquire-save module 310 includes: an acquisition unit.
The acquisition unit is used for acquiring the git information based on the script codes added in the script library of the Xcode programming software.
In some embodiments, the git information presentation apparatus 300 further comprises: a naming module is added.
And the adding naming module is used for adding script codes in a script library of the Xcode programming software before the git information is acquired based on the script codes and executing renaming operation on the script codes.
In some embodiments, the git information comprises: packaging node information, packaging branch information, encryption key information, submitter information, and submission time of the application.
In some embodiments, the information presentation module 320 includes: and a pop-up window display unit.
And the popup display unit is used for displaying the git information based on a popup frame of the application program home page.
The electronic device, the computer program product, and the storage medium provided by the present invention are described below, and the electronic device, the computer program product, and the storage medium described below and the above-described git information presentation method may be referred to in correspondence with each other.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform a git information exposure method, which includes:
and step 120, reading the stored git information based on a git information tool method, and displaying the git information based on a popup window.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, a computer is capable of executing the git information presentation method provided by the above methods, and the method comprises:
and step 120, reading the stored git information based on a git information tool method, and displaying the git information based on a popup window.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the git information presentation method provided by the above methods, the method comprising:
and step 120, reading the stored git information based on a git information tool method, and displaying the git information based on a popup window.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A git information display method is characterized by comprising the following steps:
obtaining git information based on script codes, and storing the git information based on information storage fields in a configuration file of an application program;
and reading the stored git information based on the git information tool method, and displaying the git information based on a popup window.
2. The git information presentation method according to claim 1, wherein the obtaining git information based on script code comprises:
and acquiring the git information based on script codes added in a script library of the Xcode programming software.
3. The git information presentation method according to claim 2, further comprising:
adding script codes in a script library of the Xcode programming software before obtaining git information based on the script codes, and performing renaming operation on the script codes.
4. The git information presentation method according to claim 1, wherein the git information comprises: packaging node information, packaging branch information, encryption key information, submitter information, and submission time of the application.
5. The git information presentation method according to any of the claims 1-4, wherein the presenting the git information based on popup window comprises:
and displaying the git information based on a bullet box of the application program home page.
6. A git information display device, comprising:
the acquisition and storage module is used for acquiring git information based on the script code, and storing the git information based on an information storage field in a configuration file of an application program;
and the information display module is used for reading the stored git information based on a git information tool method and displaying the git information based on a popup window.
7. The git information presentation method of claim 6, wherein the acquisition and preservation module comprises:
and the acquisition unit is used for acquiring the git information based on the script codes added in the script library of the Xcode programming software.
8. An electronic device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, characterized in that said processor, when executing said program, carries out the steps of the git information presentation method according to any of the claims 1 to 5.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the git information presentation method as claimed in any of the claims 1 to 5.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the git information presentation method according to any of the claims 1 to 5 when being executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111572822.3A CN114356392A (en) | 2021-12-21 | 2021-12-21 | git information display method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111572822.3A CN114356392A (en) | 2021-12-21 | 2021-12-21 | git information display method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114356392A true CN114356392A (en) | 2022-04-15 |
Family
ID=81102324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111572822.3A Pending CN114356392A (en) | 2021-12-21 | 2021-12-21 | git information display method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114356392A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115509607A (en) * | 2022-11-23 | 2022-12-23 | 易方信息科技股份有限公司 | Method for transmitting instructions from iOS-end packaging project to packaging script across environments |
-
2021
- 2021-12-21 CN CN202111572822.3A patent/CN114356392A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115509607A (en) * | 2022-11-23 | 2022-12-23 | 易方信息科技股份有限公司 | Method for transmitting instructions from iOS-end packaging project to packaging script across environments |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10409700B2 (en) | Flexible configuration and control of a testing system | |
EP2368189B1 (en) | Debugging pipeline | |
US10067858B2 (en) | Cloud-based software testing | |
US8838964B2 (en) | Package audit tool | |
BR102016018127A2 (en) | design method based on critical security software model | |
US9063819B2 (en) | Extensible patch management | |
US8745578B2 (en) | Eliminating false-positive reports resulting from static analysis of computer software | |
US11550568B1 (en) | Automatically deploying artifacts | |
US7761282B2 (en) | System and method to simulate conditions and drive control-flow in software | |
US20190377662A1 (en) | Identifying a source file for use in debugging compiled code | |
US20220283801A1 (en) | Pipeline release validation | |
CN110673837B (en) | Code repairing method and device, electronic equipment and computer readable storage medium | |
CN108089870B (en) | Method and apparatus for repairing applications | |
CN111797020A (en) | Mock data method and device based on dynamic bytecode | |
CN110580222A (en) | Software test case generation method and system | |
US11461472B2 (en) | Automatic correctness and performance measurement of binary transformation systems | |
CN106709281B (en) | Patch granting and acquisition methods, device | |
CN114356392A (en) | git information display method and device, electronic equipment and storage medium | |
US20140366146A1 (en) | Interactive analysis of a security specification | |
Mayan et al. | Optimized test data generation over suspicious implementation of oracle problem | |
US9720690B2 (en) | Software architecture by untangling undesired code level dependencies using code refactoring | |
Dörre et al. | Pseudo-random number generator verification: A case study | |
Zein et al. | Static analysis of android apps for lifecycle conformance | |
JP2009087353A (en) | System and method for generating closed homogeneous non-distributed application from open heterogeneous distributed application | |
Xu et al. | Real-Time Diagnosis of Configuration Errors for Software of AI Server Infrastructure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |