Browse code
You can browse the streams and branches in a product or Git repository, and view the contents of files and directories.
Overview
You can browse the current (tip) version or earlier versions of a stream/branch.
When you open a file or directory, it displays the following information:
File |
|
Directory |
|
Tip: You can add comments to files. Comments are attached to that version of the file and are displayed on any associated review pages. For details on how to add comments to reviews, see Comment on reviews.
For details on how to view Review pages, see View details in reviews.
Browse streams and branches
You can view the contents of files and directories in PulseUno streams/branches.
To view a file or directory:
- From the spaces list at the top right, select a space.
- From the product list, open a product or Git repository.
-
On the Streams page, open a stream or branch.
-
In the sidebar, click Code. The Content tab displays the most recent changes to the stream or branch.
-
Navigate to a directory or file to view its contents.
Tip: To view file contents without the color-coded syntax, click Raw.
Browse previous stream versions
You can view the contents of earlier changesets and versions of files or directories.
Dimensions CM: You can browse changesets created only with Dimensions CM 14.1 or later.
To browse previous versions of files or directories:
- From the spaces list at the top right, select a space.
- From the product list, open a product or Git repository.
-
On the Streams page, open a stream or branch.
-
In the sidebar, select Code.
-
Choose what to view:
Browse the entire contents of an earlier changeset. Select the check box for a changeset, and click View at Version. In the Content tab, browse the files and directories in the changeset. View an earlier version of a file or directory. In the Content tab, navigate to the file or directory. Click the History tab, select a version of the file or directory, and click View at Version. Revert to the current stream or branch version. At the top right, click View at Tip. Enter filters, such as usernames and dates, to search the stream or branch. For details about using search, see Search.
Tip:
- PulseUno displays the version of the stream or branch you selected until you revert to the tip.
- Comments and findings are tied to the file version where they were added and shown when that version is displayed.
Add directory descriptions
In each directory, you can create a file that describes the directory's contents. To write the content, use following formats:
File name | Data type | Search order |
---|---|---|
readme.md | Markdown | 1 |
package.html | HTML | 2 |
readme.txt | Plain text | 3 |
read.me | Plain text | 4 |
package-info.java | Code | 5 |
PulseUno searches each directory for one of these file types in the order specified in the earlier table. When PulseUno finds the first file, the file is rendered, and the content is displayed at the bottom of the directory page.
Add comments to files
You can add comments to files and collaborate with team members. This functionality is similar to adding comments to files in reviews. For details, see Comment on reviews.
See also: